Skip to content
Snippets Groups Projects
Commit 2807d7ad authored by Fatih Uzunoğlu's avatar Fatih Uzunoğlu Committed by Steve Lhomme
Browse files

qml: fix toolbar editor dialog combobox sizing

parent 4982441f
No related branches found
No related tags found
1 merge request!3813qml: fix toolbar editor dialog combobox sizing
Pipeline #365325 passed with stage
in 17 minutes and 45 seconds
......@@ -69,9 +69,17 @@ WindowDialog {
ColumnLayout {
anchors.fill: parent
spacing: VLCStyle.margin_small
RowLayout {
Layout.fillHeight: false
spacing: VLCStyle.margin_xsmall
Widgets.MenuLabel {
Layout.fillWidth: true
Layout.minimumWidth: implicitWidth
color: root.colorContext.fg.primary
text: I18n.qtr("Select profile:")
}
......@@ -79,13 +87,16 @@ WindowDialog {
Widgets.ComboBoxExt {
id: comboBox
Layout.maximumWidth: (root.width / 2)
Layout.fillWidth: (implicitWidth > Layout.minimumWidth)
Layout.minimumWidth: VLCStyle.combobox_width_large
Layout.minimumHeight: VLCStyle.combobox_height_normal
// this is not proper way to do it,
// but ComboBoxExt does not provide
// correct implicit width:
implicitWidth: implicitContentWidth
font.pixelSize: VLCStyle.fontSize_normal
width: VLCStyle.combobox_width_large
height: VLCStyle.combobox_height_normal
delegate: ItemDelegate {
width: comboBox.width
leftPadding: comboBox.leftPadding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment