diff options
author | Gabriel de Dietrich <gabriel.dedietrich@digia.com> | 2013-03-25 15:31:50 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-26 12:54:33 +0100 |
commit | 1a26cea1fcfdb497adc38fdc38a355bf2cea0509 (patch) | |
tree | 59163261247dfb42f02db5c26562077a20c5681c /src/controls/ComboBox.qml | |
parent | 6eb99b3c51fc4ec844032074ceb3aaee39d05d50 (diff) | |
download | qtquickcontrols-1a26cea1fcfdb497adc38fdc38a355bf2cea0509.tar.gz |
ComboBox: Allow (ugly) vertical resizing
Also, make sure popup and drop-down list are properly positioned.
Task-number: QTBUG-30357
Change-Id: I1afa05aded75fbe697dd6cf8672c0d3623b4c988
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/ComboBox.qml')
-rw-r--r-- | src/controls/ComboBox.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml index aace7369..fadd2a16 100644 --- a/src/controls/ComboBox.qml +++ b/src/controls/ComboBox.qml @@ -133,7 +133,7 @@ Control { property bool isPopup: comboBox.__panel.popup property int x: 0 - property int y: isPopup ? 0 : comboBox.height + property int y: isPopup ? (comboBox.__panel.height - comboBox.__panel.implicitHeight) / 2.0 : comboBox.__panel.height __minimumWidth: comboBox.width __visualItem: comboBox |