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:
either
- it has always been broken, and should be handled better in the 
MainView/Page/whatever component
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 :)

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1566713

Title:
  OSK does not work as expected

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
   I am now trying to following the OSK at the link
  https://developer.ubuntu.com/en/apps/qml/tutorials/ubuntu-screen-
  keyboard-tricks/. I find that when i set anchorToKeyboard to true, the
  UI looks different from the one shown on the link.

  When anchorToKeyboard: true, I cannot even see the input field for
  "username" and "password"? is this a bug? the UI is like
  http://imgur.com/wXaSzqG my test code is at https://github.com/liu-
  xiao-guo/osk

  faenil helped to verify that if we set:

    Page {
          title: i18n.tr("onscreenkeyboard")
          anchors.fill: parent   // this line makes the OSK work properly as 
expected on the link

          ....
    }

  Best regards,
  XiaoGuo

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1566713/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to