Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9
-
None
Description
The problem is that both if checks here get skipped because the check is done when the flickable's height is at its largest: when the InputPanel is hidden. When the InputPanel is activated (by an input field receiving focus), the flickable's height is reduced to account for the InputPanel, and this height change is animated.
55:392 onHeightChanged: flickable height changed to 320 55:392 onHeightChanged: flickable height changed to 720 55:404 onInputItemChanged: --- onInputItemChanged 55:432 onHeightChanged: flickable height changed to 716.7232 55:432 onTriggered: ensuring visible... 55:432 ensureVisible: true TextField_QMLTYPE_25(0x11a7510) QQuickFlickable_QML_28(0x1160fd0) true false 55:432 ensureVisible: flickable.contentY 0 cursorRectangle.y - scrollMarginVertical 398 55:432 ensureVisible: flickable.contentY + flickable.height 716.7232 cursorRectangle.y + inputItem.cursorRectangle.height + scrollMarginVertical 471 55:447 onHeightChanged: flickable height changed to 706.8928 55:463 onHeightChanged: flickable height changed to 690.5088 55:479 onHeightChanged: flickable height changed to 667.5712 55:496 onHeightChanged: flickable height changed to 638.08 55:512 onHeightChanged: flickable height changed to 602.0352 55:528 onHeightChanged: flickable height changed to 556.5568 55:543 onHeightChanged: flickable height changed to 510.51519999999994 55:559 onHeightChanged: flickable height changed to 463.8208 55:576 onHeightChanged: flickable height changed to 423.68 55:591 onHeightChanged: flickable height changed to 390.0928 55:607 onHeightChanged: flickable height changed to 363.0592 55:623 onHeightChanged: flickable height changed to 342.5792 55:639 onHeightChanged: flickable height changed to 328.6528 55:656 onHeightChanged: flickable height changed to 321.28 55:671 onHeightChanged: flickable height changed to 320
The keyboardRectangle and cursorRectangle connections don't ever seem to get hit, at least from my testing on Ubuntu.
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-66294 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
219548,8 | basic example: ensure AutoScroller scrolls correctly when first opened | 5.10 | qt/qtvirtualkeyboard | Status: DEFERRED | -2 | 0 |
224683,2 | basic example: ensure AutoScroller scrolls correctly when first opened | 5.11 | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |
237288,2 | Fix AutoScroller | 5.12 | qt/qtvirtualkeyboard | Status: MERGED | +2 | 0 |