mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-05 08:55:59 +00:00
merged with master
This commit is contained in:
@@ -1260,12 +1260,10 @@ void Window::resizeEvent(QResizeEvent *e) {
|
||||
if (!title) return;
|
||||
|
||||
Adaptive::Layout layout = Adaptive::OneColumnLayout;
|
||||
if (width() >= st::adaptiveNormalWidth) {
|
||||
if (width() - chatsListWidth(width()) >= st::historyMaxWidth) {
|
||||
layout = Adaptive::WideLayout;
|
||||
} else {
|
||||
layout = Adaptive::NormalLayout;
|
||||
}
|
||||
if (width() > st::adaptiveWideWidth) {
|
||||
layout = Adaptive::WideLayout;
|
||||
} else if (width() >= st::adaptiveNormalWidth) {
|
||||
layout = Adaptive::NormalLayout;
|
||||
}
|
||||
if (layout != Global::AdaptiveLayout()) {
|
||||
Global::SetAdaptiveLayout(layout);
|
||||
|
Reference in New Issue
Block a user