2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Switch Info between columns and layer.

This commit is contained in:
John Preston
2017-09-19 13:32:34 +03:00
parent 3fbb643d51
commit 5586d231de
11 changed files with 116 additions and 41 deletions

View File

@@ -159,6 +159,15 @@ bool Controller::canShowThirdSection() const {
return window()->canExtendWidthBy(extendBy);
}
bool Controller::canShowThirdSectionWithoutResize() const {
auto currentWidth = computeColumnLayout().bodyWidth;
return currentWidth >= minimalThreeColumnWidth();
}
bool Controller::takeThirdSectionFromLayer() {
return App::wnd()->takeThirdSectionFromLayer();
}
void Controller::resizeForThirdSection() {
auto layout = computeColumnLayout();
if (layout.windowLayout == Adaptive::WindowLayout::ThreeColumn) {