diff --git a/doric-Qt/doric/resources/hlayout.qml b/doric-Qt/doric/resources/hlayout.qml index f0648539..12b20e05 100644 --- a/doric-Qt/doric/resources/hlayout.qml +++ b/doric-Qt/doric/resources/hlayout.qml @@ -97,13 +97,14 @@ Rectangle { } } - if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_X) { - head.Layout.fillWidth = true - } - if (parent.widthSpec == 1) { tail.Layout.fillWidth = false } else { + if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_X) { + head.Layout.fillWidth = true + } else { + head.Layout.fillWidth = false + } tail.Layout.fillWidth = true } } diff --git a/doric-Qt/doric/resources/vlayout.qml b/doric-Qt/doric/resources/vlayout.qml index 3d4509b1..384bfa41 100644 --- a/doric-Qt/doric/resources/vlayout.qml +++ b/doric-Qt/doric/resources/vlayout.qml @@ -98,13 +98,14 @@ Rectangle { } } - if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_Y) { - head.Layout.fillHeight = true - } - if (parent.heightSpec == 1) { tail.Layout.fillHeight = false } else { + if (gravity === Gravity.enumerate().CENTER || gravity === Gravity.enumerate().CENTER_Y) { + head.Layout.fillHeight = true + } else { + head.Layout.fillHeight = false + } tail.Layout.fillHeight = true } }