From 864e3698e89651388aae3451d56211bb025a4b0c Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 27 Aug 2018 17:46:14 -0700 Subject: [PATCH] UI: Fix filter layout issue In commit 57f8c5e3, a stretch spacer was put in to the filter window UI, which was meant to be used when there's no video for the source. However, it was always put in, and would stretch the layout even when there was video. This fixes that issue by only inserting a stretch spacer when there's no video for the source. --- UI/forms/OBSBasicFilters.ui | 13 ------------- UI/window-basic-filters.cpp | 1 + 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/UI/forms/OBSBasicFilters.ui b/UI/forms/OBSBasicFilters.ui index ab4afb5e5..b25d5d373 100644 --- a/UI/forms/OBSBasicFilters.ui +++ b/UI/forms/OBSBasicFilters.ui @@ -390,19 +390,6 @@ - - - - Qt::Vertical - - - - 20 - 40 - - - - diff --git a/UI/window-basic-filters.cpp b/UI/window-basic-filters.cpp index e3cd7547e..7e17d1d76 100644 --- a/UI/window-basic-filters.cpp +++ b/UI/window-basic-filters.cpp @@ -133,6 +133,7 @@ OBSBasicFilters::OBSBasicFilters(QWidget *parent, OBSSource source_) addDrawCallback); } else { ui->rightLayout->setContentsMargins(0, noPreviewMargin, 0, 0); + ui->rightContainerLayout->insertStretch(1); ui->preview->hide(); } } -- GitLab