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
Feature request: add optional scroll to the TextInput widget [$34] #1449
Comments
From master, the corresponding Kv would be:
As many others widgets, if you want a textinput with a scrollbar, just make the assembly as showed in the kv. That's not more complex than that. It would be complex if we start to mix behavior for your own need. The kivy way is not to make all the widgets complex and hard to maintain, but cut into small and reusable piece. |
I disagree, there are good reasons for which the TextInput should control its scrolling, the visibility of the cursor is one of them, when you go up/down, you want moving the cursor to control the scrolling, and you want the view to go back to cursor when you start typing. Currently the TextInput can scroll when the text is larger than the container, but there is no scrollbar to it, and no touch management, only keyboard can control it, if you put the TextInput in a ScrollView, then you lose the keyboard-controlled scrolling, and the sync between cursor position and view. |
Ok, +1. |
Thanks tito for reopening it, using your code gives me a textinput that changes it's size and the widget scrolls up and down, not the text, it's the same as the code posted by me. |
py:
kv:
|
+1 right now on a mobile device, it is impossible to scroll a TextInput with just the touch interface. |
The TextInput widget needs a scrollbar / scroll capability on x, y axis when the text overflows in it.
If one attaches TextInput to ScrollView like this, the TextInput object will be scrolled, moved around, not the actual text in the widget:
There is a $34 open bounty on this issue. Add to the bounty at Bountysource.
The text was updated successfully, but these errors were encountered: