2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fixed position of already shown tabbed panel.

- Fixed #6301.
This commit is contained in:
23rd
2019-07-16 11:09:48 +03:00
committed by John Preston
parent ab8889b2fa
commit 633084ed9c

View File

@@ -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(