diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2017-10-03 11:30:02 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2017-10-03 14:58:31 +0000 |
commit | 265b3bea18c1ac13da413931024f64f49a2da7fc (patch) | |
tree | 3683ba4a13df27c930df5512cc2215a9a2f92a64 | |
parent | a78b30f408b56f182697a4960a97d4b957e40824 (diff) |
Doc: let TextEdit grow vertically in ensureVisible() snippet
Binding its height to the height of the flickable means that it's only
as tall as the flickable, and hence cannot be interacted with beyond a
certain point. The flickable was using the correct height
(paintedHeight), which meant that the entire text could be scrolled,
just not interacted with.
Let it assume its implicitHeight so that it can grow freely.
Task-number: QTBUG-48174
Change-Id: I853d0f505466e26e3100e79ff70210fcfa247f0f
Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r-- | src/quick/doc/snippets/qml/texteditor.qml | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/quick/doc/snippets/qml/texteditor.qml b/src/quick/doc/snippets/qml/texteditor.qml index 7da9086e10..9bf13fb27c 100644 --- a/src/quick/doc/snippets/qml/texteditor.qml +++ b/src/quick/doc/snippets/qml/texteditor.qml @@ -63,7 +63,6 @@ Flickable { TextEdit { id: edit width: flick.width - height: flick.height focus: true wrapMode: TextEdit.Wrap onCursorRectangleChanged: flick.ensureVisible(cursorRectangle) |