Size CreateRoom box correctly if window too small

This commit is contained in:
miruka
2019-11-08 10:31:07 -04:00
parent 37e6ced259
commit bfbeb83ce5
2 changed files with 8 additions and 2 deletions

View File

@@ -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