This commit is contained in:
Vadim Lopatin 2017-09-11 15:34:14 +03:00
parent 2f6e5c8554
commit 1b82ea8d6a
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,9 @@ class ConsoleWindow : Window {
_parent = cast(ConsoleWindow)parent;
_dx = _platform.console.width;
_dy = _platform.console.height;
_currentContentWidth = _dx;
_currentContentHeight = _dy;
_windowRect = Rect(0, 0, _dx, _dy);
}
/// show window
override void show() {
@ -29,6 +32,8 @@ class ConsoleWindow : Window {
_mainWidget = new Widget();
}
_visible = true;
handleWindowStateChange(WindowState.normal, Rect(0, 0, _platform.console.width, _platform.console.height));
invalidate();
}
private dstring _windowCaption;
/// returns window caption