From 9143185a30a512a8799fe38f94835c99a686cbf2 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Tue, 2 Jul 2024 22:39:25 -0400 Subject: [PATCH] Fix small navbar flicker issue --- playlet-lib/src/components/NavBar/NavBar.bs | 2 +- playlet-lib/src/components/NavBar/NavBar.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/playlet-lib/src/components/NavBar/NavBar.bs b/playlet-lib/src/components/NavBar/NavBar.bs index bc4df80f..acbf29eb 100644 --- a/playlet-lib/src/components/NavBar/NavBar.bs +++ b/playlet-lib/src/components/NavBar/NavBar.bs @@ -16,7 +16,6 @@ end function function OnNodeReady() m.lastItemFocused = m.itemsList.itemFocused - m.top.observeField("focusedChild", FuncName(OnFocusedChildChange)) m.itemsList.observeField("focusedChild", FuncName(OnListFirstFocus)) ' NavBar should be resized after the content is changed. @@ -60,6 +59,7 @@ function OnListFirstFocus() as void m.itemsList.jumpToItem = initialFocus end if m.itemsList.observeField("itemFocused", FuncName(OnItemFocused)) + m.top.observeField("focusedChild", FuncName(OnFocusedChildChange)) end function function OnFocusedChildChange() as void diff --git a/playlet-lib/src/components/NavBar/NavBar.xml b/playlet-lib/src/components/NavBar/NavBar.xml index 8fabb5a7..a526c9dd 100644 --- a/playlet-lib/src/components/NavBar/NavBar.xml +++ b/playlet-lib/src/components/NavBar/NavBar.xml @@ -37,6 +37,7 @@ width="106" height="42" translation="[20, 48]" + opacity="0" uri="pkg:/images/logo-dark.png" />