Fix third column appearing on window resize.

This commit is contained in:
John Preston 2017-12-06 11:05:18 +04:00
parent 76a716007c
commit 3845985a6b
2 changed files with 11 additions and 2 deletions

View file

@ -86,6 +86,11 @@ void LayerWidget::parentResized() {
Window::SectionShow::Way::Forward,
anim::type::instant,
anim::activation::background));
//
// There was a layout logic which caused layer info to become a
// third column info if the window size allows, but it was decided
// to keep layer info and third column info separated.
//
//} else if (_controller->canShowThirdSectionWithoutResize()) {
// takeToThirdSection();
} else {
@ -98,7 +103,11 @@ void LayerWidget::parentResized() {
bool LayerWidget::takeToThirdSection() {
return false;
//
// There was a layout logic which caused layer info to become a
// third column info if the window size allows, but it was decided
// to keep layer info and third column info separated.
//
//Ui::FocusPersister persister(this);
//auto localCopy = _controller;
//auto memento = MoveMemento(std::move(_content));

View file

@ -395,7 +395,7 @@ void Controller::showSection(
const SectionShow &params) {
if (App::wnd()->showSectionInExistingLayer(
&memento,
params)) {
params) && !params.thirdColumn) {
return;
}
App::main()->showSection(std::move(memento), params);