mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +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();
|
||||
}
|
||||
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);
|
||||
|
Reference in New Issue
Block a user