mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
@@ -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(
|
||||
|
Reference in New Issue
Block a user