fuselibs icon indicating copy to clipboard operation
fuselibs copied to clipboard

WhileKeyboardVisible problem on Android 8

Open eksperts opened this issue 7 years ago • 4 comments

Reported on community.

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).

screenshot_20171014_164107

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.

eksperts avatar Oct 16 '17 10:10 eksperts

The forum thread WhileKeyboardVisible Bug on Rotating Device when Keyboard is not visible posted by [email protected] was linked to this issue.

fusebuild avatar Oct 16 '17 10:10 fusebuild

Update: this is a problem with Fuse 1.3.0 too.

eksperts avatar Oct 24 '17 08:10 eksperts

Update: this is still a problem on 1.4.0

eksperts avatar Nov 10 '17 11:11 eksperts

Still problem with Fuse 1.9, any updates?

zean00 avatar Jun 01 '18 07:06 zean00