mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
I keep pushing too fast
This commit is contained in:
parent
0d499313e2
commit
640907198e
1 changed files with 7 additions and 5 deletions
|
@ -467,12 +467,14 @@ bool BaseWindow::nativeEvent(const QByteArray &eventType, void *message, long *r
|
||||||
} break;
|
} break;
|
||||||
case WM_SIZE: {
|
case WM_SIZE: {
|
||||||
if (this->ui_.windowLayout) {
|
if (this->ui_.windowLayout) {
|
||||||
if (msg->wParam == SIZE_MAXIMIZED) {
|
if (this->hasCustomWindowFrame() && !this->frameless_) {
|
||||||
auto offset = int(this->getScale() * 8);
|
if (msg->wParam == SIZE_MAXIMIZED) {
|
||||||
|
auto offset = int(this->getScale() * 8);
|
||||||
|
|
||||||
this->ui_.windowLayout->setContentsMargins(offset, offset, offset, offset);
|
this->ui_.windowLayout->setContentsMargins(offset, offset, offset, offset);
|
||||||
} else {
|
} else {
|
||||||
this->ui_.windowLayout->setContentsMargins(0, 1, 0, 0);
|
this->ui_.windowLayout->setContentsMargins(0, 1, 0, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue