From b9e6b396a00bcbda945bb4089d0b2b867449ad01 Mon Sep 17 00:00:00 2001 From: "joogab.yun" Date: Mon, 11 Jul 2022 14:18:51 +0900 Subject: [PATCH] [NUI] Fixed border behavior of windows launched at full size 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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Tizen.NUI/src/public/Window/BorderWindow.cs b/src/Tizen.NUI/src/public/Window/BorderWindow.cs index c9bc630..8da3a28 100755 --- a/src/Tizen.NUI/src/public/Window/BorderWindow.cs +++ b/src/Tizen.NUI/src/public/Window/BorderWindow.cs @@ -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 { -- 2.7.4