Size CreateRoom box correctly if window too small
This commit is contained in:
parent
37e6ced259
commit
bfbeb83ce5
|
@ -53,6 +53,7 @@ Rectangle {
|
|||
horizontalAlignment: Text.AlignHCenter
|
||||
wrapMode: Text.Wrap
|
||||
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin: interfaceBox.verticalSpacing
|
||||
Layout.leftMargin: interfaceBox.horizontalSpacing
|
||||
|
@ -63,6 +64,7 @@ Rectangle {
|
|||
id: interfaceBody
|
||||
spacing: interfaceBox.verticalSpacing
|
||||
|
||||
Layout.preferredWidth: parent.width
|
||||
Layout.fillWidth: true
|
||||
Layout.topMargin:
|
||||
interfaceTitle.visible ? 0 : interfaceBox.verticalSpacing
|
||||
|
@ -76,6 +78,8 @@ Rectangle {
|
|||
flow: width >= buttonRepeater.childrenImplicitWidth ?
|
||||
GridLayout.LeftToRight : GridLayout.TopToBottom
|
||||
|
||||
Layout.preferredWidth: parent.width
|
||||
|
||||
HRepeater {
|
||||
id: buttonRepeater
|
||||
model: []
|
||||
|
|
|
@ -15,8 +15,10 @@ HPage {
|
|||
HColumnLayout {
|
||||
Layout.alignment: Qt.AlignCenter
|
||||
Layout.minimumWidth: Layout.maximumWidth
|
||||
Layout.maximumWidth:
|
||||
Math.max(tabBar.contentWidth, swipeView.contentWidth)
|
||||
Layout.maximumWidth: Math.min(
|
||||
parent.width,
|
||||
Math.max(tabBar.contentWidth, swipeView.contentWidth),
|
||||
)
|
||||
|
||||
HTabBar {
|
||||
id: tabBar
|
||||
|
|
Loading…
Reference in New Issue
Block a user