-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Corrupted window size with Window.softinput_mode = 'below_target' #635
Comments
I also noticed that if 2 TextInput widgets are on the same window, passing from a TextInput to another without touching whereever there is no focus capable widget will not release the keyboard so the newly focused TextInput will not be placed above the keyboard. |
Bug does not occur with the actual github Kivy version (1.9.2-dev0) and old toolchain (buildozer 0.31). |
Yup, this was fixed in -dev use kivy==master to workaround the issue till a On Fri, Feb 12, 2016 at 2:15 PM, Doug Le Tough notifications@github.com
|
Finally there is still a problem even with kivy==master: You'll see that top lines of window are still missing until focus is given to one of the TextInputs. <MyClass>:
BoxLayout:
id: main_layout
orientation: 'vertical'
padding: 10
canvas:
Color:
rgb: .5, .5, .5
Rectangle:
size: self.size
pos: self.pos
GridLayout:
size_hint: (1, .15)
padding: 10
rows: 1
BoxLayout:
canvas.before:
Color:
rgb: .2, .1, .5
Rectangle:
size: self.size
pos: self.pos
Label:
size_hint: (1, 1)
color: 1, 1 ,1 ,1
text: "Lorem Ipsum"
size: self.texture_size
TextInput:
size_hint: (1, .25)
text: app.text
Label:
size_hint: (1, .05)
TextInput:
size_hint: (1, .25)
text: app.text
Label:
size_hint: (1, .3) |
I'm closing this since it's fixed in kivy master. Could you open an issue for the other one against kivy itself, as probably it needs to be fixed there (not in p4a). |
After further test, the bad window size bug described above is still present with latest kivy git version (kivy==master). |
@doug-letough open a issue in kivy for this. |
Let's port it. |
This issue was moved to kivy/kivy#4098 |
On Android platform, if Window.softinput_mode is set to 'below_target', the window size is corrupted (Window content is shifted to top of 20 or 30 lines depending on device model).
This occurs even if the keyboard is not used.
This issue not occurs with others softinput_mode.
This issue seems related with issue #544.
This code runs nice on Linux platform and was not tested on Windows, OS X or iOS.
The same buggy behavior is encountered with both Kivy 1.9.0 and Kivy 1.9.1.
This code was tested on 2 different devices with Android 6.0 Marshmallow (HTC m8 and Nexus 7).
The tool chain used was buildozer 0.31 with the following parameters:
The text was updated successfully, but these errors were encountered: