mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Don't toggle tabbed section from OneColumn.
This commit is contained in:
@@ -162,7 +162,9 @@ void Controller::resizeForThirdSection() {
|
||||
Auth().data().setTabbedSelectorSectionEnabled(false);
|
||||
Auth().data().setThirdSectionInfoEnabled(false);
|
||||
|
||||
auto extendBy = st::columnMinimalWidthThird;
|
||||
auto extendBy = qMax(
|
||||
minimalThreeColumnWidth() - layout.bodyWidth,
|
||||
st::columnMinimalWidthThird);
|
||||
auto newBodyWidth = layout.bodyWidth + extendBy;
|
||||
dialogsWidthRatio().set(
|
||||
(dialogsWidthRatio().value() * layout.bodyWidth) / newBodyWidth,
|
||||
|
Reference in New Issue
Block a user