diff --git a/Telegram/SourceFiles/chat_helpers/tabbed_panel.cpp b/Telegram/SourceFiles/chat_helpers/tabbed_panel.cpp index 8f661eb1c..897be1926 100644 --- a/Telegram/SourceFiles/chat_helpers/tabbed_panel.cpp +++ b/Telegram/SourceFiles/chat_helpers/tabbed_panel.cpp @@ -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(