Skip to content

Commit

Permalink
fix(third_section): fix third section's resize direction
Browse files Browse the repository at this point in the history
Signed-off-by: AmirReza_Ashouri <[email protected]>
  • Loading branch information
AMP999 committed May 7, 2022
1 parent e2f14e6 commit dc7e047
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Telegram/SourceFiles/mainwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2351,6 +2351,9 @@ void MainWidget::ensureThirdColumnResizeAreaCreated() {
}
auto moveLeftCallback = [=](int globalLeft) {
auto newWidth = mapToGlobal(QPoint(width(), 0)).x() - globalLeft;
newWidth = rtl()
? (width() - newWidth)
: newWidth;
Core::App().settings().setThirdColumnWidth(newWidth);
};
auto moveFinishedCallback = [=] {
Expand Down

0 comments on commit dc7e047

Please sign in to comment.