mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-23 15:55:26 +00:00
Fix third column appearing on window resize.
This commit is contained in:
parent
76a716007c
commit
3845985a6b
@ -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));
|
||||
|
@ -395,7 +395,7 @@ void Controller::showSection(
|
||||
const SectionShow ¶ms) {
|
||||
if (App::wnd()->showSectionInExistingLayer(
|
||||
&memento,
|
||||
params)) {
|
||||
params) && !params.thirdColumn) {
|
||||
return;
|
||||
}
|
||||
App::main()->showSection(std::move(memento), params);
|
||||
|
Loading…
Reference in New Issue
Block a user