mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
parent
ab8889b2fa
commit
633084ed9c
1 changed files with 7 additions and 1 deletions
|
@ -106,9 +106,15 @@ TabbedPanel::TabbedPanel(
|
|||
}
|
||||
|
||||
void TabbedPanel::moveBottomRight(int bottom, int right) {
|
||||
const auto isNew = (_bottom != bottom || _right != right);
|
||||
_bottom = bottom;
|
||||
_right = right;
|
||||
updateContentHeight();
|
||||
// If the panel is already shown, update the position.
|
||||
if (!isHidden() && isNew) {
|
||||
moveByBottom();
|
||||
} else {
|
||||
updateContentHeight();
|
||||
}
|
||||
}
|
||||
|
||||
void TabbedPanel::setDesiredHeightValues(
|
||||
|
|
Loading…
Add table
Reference in a new issue