mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Be sure to set correct PiP maximum size.
This commit is contained in:
parent
5ac628ee4d
commit
7624e74c8b
1 changed files with 3 additions and 1 deletions
|
@ -554,7 +554,9 @@ void PipPanel::setPositionOnScreen(Position position, QRect available) {
|
||||||
|
|
||||||
setGeometry(geometry);
|
setGeometry(geometry);
|
||||||
setMinimumSize(minimalSize);
|
setMinimumSize(minimalSize);
|
||||||
setMaximumSize(maximalSize);
|
setMaximumSize(
|
||||||
|
std::max(minimalSize.width(), maximalSize.width()),
|
||||||
|
std::max(minimalSize.height(), maximalSize.height()));
|
||||||
updateDecorations();
|
updateDecorations();
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue