mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
TextEditor: Reset editor width when disabling preview mode
When disabling preview mode, reset the fixed width of m_editor so that it fills out the window again even after resizing the splitter.
This commit is contained in:
parent
2264de9921
commit
e0cf6f3cf0
Notes:
sideshowbarker
2024-07-18 11:03:24 +09:00
Author: https://github.com/metmo
Commit: e0cf6f3cf0
Pull-request: https://github.com/SerenityOS/serenity/pull/8116
Issue: https://github.com/SerenityOS/serenity/issues/7462
1 changed files with 1 additions and 0 deletions
|
@ -735,6 +735,7 @@ void MainWidget::set_preview_mode(PreviewMode mode)
|
|||
update_markdown_preview();
|
||||
} else {
|
||||
m_no_preview_action->set_checked(true);
|
||||
m_editor->set_fixed_width(-1);
|
||||
set_web_view_visible(false);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue