2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix effect panel jump on expand.

This commit is contained in:
John Preston
2024-05-13 12:39:31 +04:00
parent b01244fc42
commit d0d1ef9e66

View File

@@ -400,9 +400,7 @@ void Selector::initGeometry(int innerTop) {
_collapsedTopSkip = _useTransparency
? (extendTopForCategoriesAndAbout(forAbout) + _specialExpandTopSkip)
: 0;
_topAddOnExpand = extendTopForCategories()
- _aboutExtend
+ _specialExpandTopSkip;
_topAddOnExpand = _collapsedTopSkip - _aboutExtend;
const auto height = margins.top()
+ _aboutExtend
+ innerHeight