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();
}
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->lifetime());
container->show();
@ -1181,7 +1181,7 @@ void Panel::createMainButton() {
}
button->move(inner.x(), inner.y() + inner.height() - height);
if (const auto raw = _webviewParent.data()) {
raw->resize(inner.width(), inner.height() - height);
raw->setFixedSize(inner.width(), inner.height() - height);
}
button->resizeToWidth(inner.width());
_webviewBottom->setVisible(!shown);