diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-08-02 19:55:17 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-03 14:09:02 +0200 |
commit | 117c0dc47a1a255987dda498f9727672c9106b48 (patch) | |
tree | b3bad97e1180af192f0c5cb6dc92f1cf606403fc /src/controls/SpinBox.qml | |
parent | 7a9e41ac5014454dba9df5285777e91846b9b3ea (diff) | |
download | qtquickcontrols-117c0dc47a1a255987dda498f9727672c9106b48.tar.gz |
Be bit more clever with when we clip.
Clipping breaks every optimization the scene graph can do, so
we should avoid it when possible.
Change-Id: I774bfedb19e0fa9f48c35a8db84a81f5528a4ef8
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/SpinBox.qml')
-rw-r--r-- | src/controls/SpinBox.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml index b1f87cec..a952838c 100644 --- a/src/controls/SpinBox.qml +++ b/src/controls/SpinBox.qml @@ -213,7 +213,7 @@ Control { TextInput { id: input - clip: true + clip: contentWidth > width anchors.fill: parent anchors.leftMargin: __style ? __style.padding.left : 0 anchors.topMargin: __style ? __style.padding.top : 0 |