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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user