MainView.anchorToKeyboard documentation unclear
Bug #1566713 reported by
XiaoGuo, Liu
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am now trying to following the OSK at the link https:/
When anchorToKeyboard: true, I cannot even see the input field for "username" and "password"? is this a bug? the UI is like http://
faenil helped to verify that if we set:
Page {
title: i18n.tr(
....
}
Best regards,
XiaoGuo
To post a comment you must log in.
I'm not familiar with Page code,
but I don't see any logic that would make it work without anchors there.
The Page is simply pushed up, and the content at the top slides under the header.
I verified that the same happens on UC 1.2 as well.
There are 2 options: Page/whatever component
either
- it has always been broken, and should be handled better in the MainView/
or
- it is working as designed and adding "anchorToKeyboard: true" is intended to just anchor to the bottom, the developer should be responsible for anchoring the Page to the top so that it resizes.
If the latter is true, the code on the tutorial is wrong (missing "anchors.fill: parent") and the documentation of anchorToKeyboard should probably say something about the anchors :)