From: guowei.wang Date: Wed, 18 Jan 2023 03:42:48 +0000 (+0800) Subject: [NUI] Fix svace issues. X-Git-Tag: accepted/tizen/unified/20231205.024657~475 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e9d23c44266c4d77dde108199ce12043e6240269;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix svace issues. --- diff --git a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs index d012093..94b58ad 100755 --- a/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs +++ b/src/Tizen.NUI.Components/Controls/Navigation/Navigator.cs @@ -155,13 +155,19 @@ namespace Tizen.NUI.Components private void OnAddedToWindow(object sender, EventArgs e) { parentWindow = Window.Get(this); - parentWindow.KeyEvent += OnWindowKeyEvent; + if (null != parentWindow) + { + parentWindow.KeyEvent += OnWindowKeyEvent; + } } private void OnRemovedFromWindow(object sender, EventArgs e) { - parentWindow.KeyEvent -= OnWindowKeyEvent; - parentWindow = null; + if (null != parentWindow) + { + parentWindow.KeyEvent -= OnWindowKeyEvent; + parentWindow = null; + } } private void Initialize() diff --git a/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/GridLayouter.cs b/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/GridLayouter.cs index 67b126c..2c4d0a4 100755 --- a/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/GridLayouter.cs +++ b/src/Tizen.NUI.Components/Controls/RecyclerView/Layouter/GridLayouter.cs @@ -1445,9 +1445,10 @@ namespace Tizen.NUI.Components ScrollContentSize - Padding.Bottom - footerSize + footerMargin.Top; return (xPos, yPos); } - if (isGrouped) + + GroupInfo myGroup = GetGroupInfo(index); + if (isGrouped && null != myGroup) { - GroupInfo myGroup = GetGroupInfo(index); if (colView.InternalItemSource.IsGroupHeader(index)) { spaceStartX+= groupHeaderMargin.Start;