diff --git a/doric-Qt/doric/resources/hlayout.qml b/doric-Qt/doric/resources/hlayout.qml index ac147193..f0648539 100644 --- a/doric-Qt/doric/resources/hlayout.qml +++ b/doric-Qt/doric/resources/hlayout.qml @@ -100,12 +100,17 @@ Rectangle { if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_X) { head.Layout.fillWidth = true } + + if (parent.widthSpec == 1) { + tail.Layout.fillWidth = false + } else { + tail.Layout.fillWidth = true + } } Item { id: tail objectName: "tail" - Layout.fillWidth: true } } } diff --git a/doric-Qt/doric/resources/vlayout.qml b/doric-Qt/doric/resources/vlayout.qml index ca18a124..3d4509b1 100644 --- a/doric-Qt/doric/resources/vlayout.qml +++ b/doric-Qt/doric/resources/vlayout.qml @@ -101,12 +101,17 @@ Rectangle { if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_Y) { head.Layout.fillHeight = true } + + if (parent.heightSpec == 1) { + tail.Layout.fillHeight = false + } else { + tail.Layout.fillHeight = true + } } Item { id: tail objectName: "tail" - Layout.fillHeight: true } } }