<Alloy>
<Window backgroundColor="#fff" fullscreen="true" navBarHidden="true">
<TableView top="0" bottom="60" backgroundColor="teal">
<TableViewRow title="top"></TableViewRow>
<TableViewRow title="1test"></TableViewRow>
<TableViewRow title="2test"></TableViewRow>
<TableViewRow title="3test"></TableViewRow>
<TableViewRow title="4test"></TableViewRow>
<TableViewRow title="5test"></TableViewRow>
<TableViewRow title="6test"></TableViewRow>
<TableViewRow title="7test"></TableViewRow>
<TableViewRow title="8test"></TableViewRow>
<TableViewRow title="9test"></TableViewRow>
<TableViewRow title="10test"></TableViewRow>
<TableViewRow title="11test"></TableViewRow>
<TableViewRow title="end"></TableViewRow>
</TableView>
<TextField id="tf" bottom="0" height="60" width="Ti.UI.FILL"></TextField>
</Window>
</Alloy>
When running this code and focusing the Textfield the window will move up and you can't scroll up in the tableview to the first element.
normal view:
!Screenshot_20191008-144600.png|thumbnail!
keyboard up, can't scroll the tableview to the top elements:
!Screenshot_20191008-144609.png|thumbnail!
Tried different
windowSoftInputMode
but nothing changed. Setting fullscreen to false will allow you to scroll all the way up to the first element.
Not sure if it is native behaviour but perhaps there is a flag that is missing to make you scroll up to the first element again.
Ti SDK: 8.2.0.GA
Android 7.0.1
Hello [~michael], I have tested the issue in Android emulators 7.1.1, 8.0, 9.0 version. I see the issue is all the same everywhere. After the virtual keyboard opens, the table view does not scroll up on top. [~jquick], Can you please look into this? Thanks.
Sorry. I don't have time to look into this at the moment. But what I do know is that an activity's default "windowSoftInputMode" setting used to be "adjustResize", which will resize the activity window to fit between the top StatusBar/ActionBar and bottom VirtualKeyboard/NavigationBar. Meaning that the virtual keyboard is not supposed to *overlap* the window content when "adjustResize" is set. Based on the screenshots, it looks like it is doing an "adjustPan" instead.
Hmm... apparently "adjustResize" won't resize the window content if the status bar has been removed (aka: "fullscreen" mode). Google has a ticket written about this marked "Won't Fix". https://issuetracker.google.com/issues/36911528 This is an ugly topic on stackoverflow... https://stackoverflow.com/questions/7417123/android-how-to-adjust-layout-in-full-screen-mode-when-softkeyboard-is-visible/19494006
The windowSoftInputMode has no effect. I've tried all possibles options provided in the titanium api. All with same output as shown above.
Right. Setting "windowSoftInputMode" to "adjustSize" only works if not fullscreen. That's an issue on Google's end as can be seen by my links above.