From 1fde45f59b29398220f6f4554895fb883f057360 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Sun, 21 Oct 2018 11:02:14 +0200 Subject: [PATCH] Also resize tabs if height has changed Fixes #769 --- src/widgets/helper/NotebookTab.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index 5cf4a3f26..bdee3850a 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -93,9 +93,10 @@ void NotebookTab::updateSize() } width = clamp(width, this->height(), int(150 * scale)); + auto height = int(NOTEBOOK_TAB_HEIGHT * scale); - if (this->width() != width) { - this->resize(width, int(NOTEBOOK_TAB_HEIGHT * scale)); + if (this->width() != width || this->height() != height) { + this->resize(width, height); this->notebook_->performLayout(); } }