forked from qt-creator/qt-creator
QmlDesigner: Fix ComboBox popup offset
Change-Id: I44fff85f231695250e530daf2e6474055d4acf3d Reviewed-by: Brook Cronin <brook.cronin@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
65710ae2f8
commit
f76c009a89
@@ -184,9 +184,9 @@ T.ComboBox {
|
||||
|
||||
popup: T.Popup {
|
||||
id: comboBoxPopup
|
||||
x: actionIndicator.width + control.style.borderWidth
|
||||
x: actionIndicator.width
|
||||
y: control.height
|
||||
width: control.width - actionIndicator.width - control.style.borderWidth * 2
|
||||
width: control.width - actionIndicator.width
|
||||
// TODO Setting the height on the popup solved the problem with the popup of height 0,
|
||||
// but it has the problem that it sometimes extend over the border of the actual window
|
||||
// and is then cut off.
|
||||
|
||||
@@ -21,7 +21,7 @@ T.ComboBox {
|
||||
width: control.style.controlSize.width
|
||||
height: control.style.controlSize.height
|
||||
|
||||
leftPadding: control.style.borderWidth
|
||||
leftPadding: 0
|
||||
rightPadding: popupIndicator.width + control.style.borderWidth
|
||||
font.pixelSize: control.style.baseFontSize
|
||||
|
||||
|
||||
Reference in New Issue
Block a user