2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 07:35:12 +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) { void TabbedPanel::moveBottomRight(int bottom, int right) {
const auto isNew = (_bottom != bottom || _right != right);
_bottom = bottom; _bottom = bottom;
_right = right; _right = right;
updateContentHeight(); // If the panel is already shown, update the position.
if (!isHidden() && isNew) {
moveByBottom();
} else {
updateContentHeight();
}
} }
void TabbedPanel::setDesiredHeightValues( void TabbedPanel::setDesiredHeightValues(