mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 08:35:21 +00:00
Fix bot webview height with fractional scaling
This commit is contained in:
@@ -579,7 +579,7 @@ bool Panel::createWebview(const Webview::ThemeParams ¶ms) {
|
|||||||
height = _mainButton->height();
|
height = _mainButton->height();
|
||||||
}
|
}
|
||||||
bottom->move(inner.x(), inner.y() + inner.height() - height);
|
bottom->move(inner.x(), inner.y() + inner.height() - height);
|
||||||
container->resize(inner.width(), inner.height() - height);
|
container->setFixedSize(inner.width(), inner.height() - height);
|
||||||
bottom->resizeToWidth(inner.width());
|
bottom->resizeToWidth(inner.width());
|
||||||
}, bottom->lifetime());
|
}, bottom->lifetime());
|
||||||
container->show();
|
container->show();
|
||||||
@@ -1181,7 +1181,7 @@ void Panel::createMainButton() {
|
|||||||
}
|
}
|
||||||
button->move(inner.x(), inner.y() + inner.height() - height);
|
button->move(inner.x(), inner.y() + inner.height() - height);
|
||||||
if (const auto raw = _webviewParent.data()) {
|
if (const auto raw = _webviewParent.data()) {
|
||||||
raw->resize(inner.width(), inner.height() - height);
|
raw->setFixedSize(inner.width(), inner.height() - height);
|
||||||
}
|
}
|
||||||
button->resizeToWidth(inner.width());
|
button->resizeToWidth(inner.width());
|
||||||
_webviewBottom->setVisible(!shown);
|
_webviewBottom->setVisible(!shown);
|
||||||
|
Reference in New Issue
Block a user