[NUI] Fixed border behavior of windows launched at full size
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 11 Jul 2022 05:18:51 +0000 (14:18 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Tue, 12 Jul 2022 02:41:27 +0000 (11:41 +0900)
For windows launched in full size, we need to calibrate the window as much as the border size for Maximized to work well.

Otherwise, the border area will be located outsize of screen.

src/Tizen.NUI/src/public/Window/BorderWindow.cs

index c9bc630..8da3a28 100755 (executable)
@@ -207,11 +207,9 @@ namespace Tizen.NUI
                     realWindowSize.Width >= screenWidth && realWindowSize.Height >= screenHeight &&
                     IsMaximized() == false)
                 {
+                    WindowSize -= new Size2D((int)borderInterface.BorderLineThickness * 2, (int)(borderHeight + borderInterface.BorderLineThickness * 2));   
                     Maximize(true);
                     borderInterface.OnMaximize(true);
-                    ResizedEventArgs e = new ResizedEventArgs();
-                    e.WindowSize = WindowSize;
-                    OnBorderWindowResized(this, e);
                 }
                 else
                 {