Also resize tabs if height has changed

Fixes #769
This commit is contained in:
Rasmus Karlsson 2018-10-21 11:02:14 +02:00 committed by fourtf
parent 69e0352648
commit 1fde45f59b

View file

@ -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();
}
}