mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
parent
69e0352648
commit
1fde45f59b
1 changed files with 3 additions and 2 deletions
|
@ -93,9 +93,10 @@ void NotebookTab::updateSize()
|
||||||
}
|
}
|
||||||
|
|
||||||
width = clamp(width, this->height(), int(150 * scale));
|
width = clamp(width, this->height(), int(150 * scale));
|
||||||
|
auto height = int(NOTEBOOK_TAB_HEIGHT * scale);
|
||||||
|
|
||||||
if (this->width() != width) {
|
if (this->width() != width || this->height() != height) {
|
||||||
this->resize(width, int(NOTEBOOK_TAB_HEIGHT * scale));
|
this->resize(width, height);
|
||||||
this->notebook_->performLayout();
|
this->notebook_->performLayout();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue