Context: set dimensions of window on change_editor

This commit is contained in:
Maxime Coste 2012-11-19 13:37:38 +01:00
parent 9c368c85d6
commit 6ffa74a24d

View File

@ -75,6 +75,8 @@ struct Context
void change_editor(Editor& editor) void change_editor(Editor& editor)
{ {
m_editor.reset(&editor); m_editor.reset(&editor);
if (has_window() && has_ui())
window().set_dimensions(ui().dimensions());
} }
void change_ui(UserInterface& ui) void change_ui(UserInterface& ui)