fuselibs
fuselibs copied to clipboard
WhileKeyboardVisible problem on Android 8
Fuse 1.2.1, macOS 10.12.6, Google Pixel with Android 8.0.
Copy-pasted from the forum post:
Hello Fuse Community, I have a bug i use whileKeyboardVisible to move my page to top. This is working great.
Now i rotate my device the first time all is looking good but when i rotate my device multiple times then i got a white white area on bottom on the Screen (Screenshot).
Here is my code to reproduce the bug.
Main.ux
<App>
<Router ux:Name="router" />
<DockPanel>
<StatusBarBackground Dock="Top" />
<Navigator DefaultPath="login">
<LoginPage ux:Template="login" router="router" />
</Navigator>
<BottomBarBackground Dock="Bottom" IncludesKeyboard="false" />
</DockPanel>
</App>
Login.ux
<Page ux:Class="LoginPage">
<Router ux:Dependency="router" />
<Image ux:Name="BackgroundImage" File="../assets/background.jpg" Layer="Background" StretchMode="UniformToFill">
<Blur />
</Image>
<!-- Default View -->
<Panel ux:Name="PortraitContent" Background="#000b">
<TextInput />
</Panel>
<WhileKeyboardVisible>
<DebugAction Message="Keyboard"/>
<Move Target="this" RelativeTo="Keyboard" Y="-0.5" Duration="0.3"/>
</WhileKeyboardVisible>
</Page>
I have placed a debug action message in whileKeyboardVisible and found out that WhileKeyboardVisible is always called when turning the device regardless of whether the keyboard is visible or not.
The forum thread WhileKeyboardVisible Bug on Rotating Device when Keyboard is not visible posted by [email protected] was linked to this issue.
Update: this is a problem with Fuse 1.3.0 too.
Update: this is still a problem on 1.4.0
Still problem with Fuse 1.9, any updates?