summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2018-03-27 22:21:41 +0200
committerPetr Mrázek <peterix@gmail.com>2018-03-27 22:21:41 +0200
commit6188c577e3f36480cbbc35825979f15714e15624 (patch)
tree156cf52da799cb47ba3b8d360792ec534ebc769c
parent40a30b67f454fb07593a9755a9b341d2a5b9969b (diff)
downloadMultiMC-6188c577e3f36480cbbc35825979f15714e15624.tar
MultiMC-6188c577e3f36480cbbc35825979f15714e15624.tar.gz
MultiMC-6188c577e3f36480cbbc35825979f15714e15624.tar.lz
MultiMC-6188c577e3f36480cbbc35825979f15714e15624.tar.xz
MultiMC-6188c577e3f36480cbbc35825979f15714e15624.zip
NOISSUE fix page container spacing in UIs
-rw-r--r--application/dialogs/NewInstanceDialog.cpp1
-rw-r--r--application/widgets/PageContainer.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/application/dialogs/NewInstanceDialog.cpp b/application/dialogs/NewInstanceDialog.cpp
index b95f192f..0631714c 100644
--- a/application/dialogs/NewInstanceDialog.cpp
+++ b/application/dialogs/NewInstanceDialog.cpp
@@ -70,6 +70,7 @@ NewInstanceDialog::NewInstanceDialog(const QString & initialGroup, const QString
m_container = new PageContainer(this);
m_container->setSizePolicy(QSizePolicy::Policy::Preferred, QSizePolicy::Policy::Expanding);
+ m_container->setContentsMargins(0, 0, 0, 0);
ui->verticalLayout->insertWidget(2, m_container);
m_container->addButtons(m_buttons);
diff --git a/application/widgets/PageContainer.cpp b/application/widgets/PageContainer.cpp
index 4dbd7fb2..98de57e8 100644
--- a/application/widgets/PageContainer.cpp
+++ b/application/widgets/PageContainer.cpp
@@ -158,7 +158,6 @@ void PageContainer::createUI()
m_layout->addWidget(m_pageList, 0, 0, 2, 1);
m_layout->addLayout(m_pageStack, 1, 1, 1, 1);
m_layout->setColumnStretch(1, 4);
- m_layout->setContentsMargins(0, 0, 0, 0);
setLayout(m_layout);
}