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:
Henning Gruendl
2023-02-03 12:12:30 +01:00
committed by Henning Gründl
parent 65710ae2f8
commit f76c009a89
2 changed files with 3 additions and 3 deletions

View File

@@ -184,9 +184,9 @@ T.ComboBox {
popup: T.Popup { popup: T.Popup {
id: comboBoxPopup id: comboBoxPopup
x: actionIndicator.width + control.style.borderWidth x: actionIndicator.width
y: control.height 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, // 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 // but it has the problem that it sometimes extend over the border of the actual window
// and is then cut off. // and is then cut off.

View File

@@ -21,7 +21,7 @@ T.ComboBox {
width: control.style.controlSize.width width: control.style.controlSize.width
height: control.style.controlSize.height height: control.style.controlSize.height
leftPadding: control.style.borderWidth leftPadding: 0
rightPadding: popupIndicator.width + control.style.borderWidth rightPadding: popupIndicator.width + control.style.borderWidth
font.pixelSize: control.style.baseFontSize font.pixelSize: control.style.baseFontSize