-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work correctly if text-view is at the bottom of page #42
Comments
Same issue here |
+1 My structure is like: before <GridLayout height="100%" rows="*,auto">
<ScrollView row="0" height="100%">
...messages list here
</ScrollView>
<GridLayout class="typing-bar">
<TextField col = "0" class = "input input-bottom-border" hint = "Write a message"></TextField>
</GridLayout>
</GridLayout> after <GridLayout height = "100%">
<ScrollView height = "100%">
<GridLayout height="100%" rows="*,auto">
<ScrollView row="0" height="100%">
...messages list here
</ScrollView>
<GridLayout class="typing-bar">
<TextField col = "0" class = "input input-bottom-border" hint = "Write a message"></TextField>
</GridLayout>
</GridLayout>
</ScrollView>
</GridLayout> It's a bit verbose but it works. |
not working for me sir |
@gogoout This is the solution! |
It's important to set the height explicitly on the outermost Layout all the way down to the inner ScrollView, otherwise, you'll have the first ScrollView stretch to accommodate the messages and your chat box may be out of view below the bottom of the screen. |
Hi guys, I am having the same issue in iOS (android works like a charm), tried different approaches changing layout but nothing seems to do the trick. Any help is greatly appreciated! This is what is happening: The template is the following (using nativescript-vue):
|
It only happens for me when the form is displayed inside a Modal. |
This also happens to me the scrollview solution seems to work a little bit on my problem. The textfield now stays on the same Y-axis but when new data is being added in my listview it will put the textfield back to it's original position and after that it will immediately shift back to the position adjusted by the keyboard. |
I have the same. When new data is being added in my listview it will put the textfield back to it's original position. What to do? Help someone |
same problem here, did you managed to solve this ? |
I have a page that users can send messages. Message box (text-view inside a stack-layout) is at the bottom of page. Message list gets the remainin space above:
If I tap text-view, it is not shown in the first attempt:
If I close the keyboard and tap text-view again page design is broken. I put red border around the message-box. You can see that there is a white space below that contains no elements and height of that space is almost same as the keyboard. Message-box is the bottom-most element. So there shouldn't be any space below it.
The text was updated successfully, but these errors were encountered: