Fix bot webview height with fractional scaling

This commit is contained in:
Ilya Fedin 2024-02-06 10:17:12 +04:00 committed by John Preston
parent bb3f8fbbe8
commit 5334096d68

View file

@ -579,7 +579,7 @@ bool Panel::createWebview(const Webview::ThemeParams &params) {
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);