mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix bot webview height with fractional scaling
This commit is contained in:
parent
bb3f8fbbe8
commit
5334096d68
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue