diff options
author | crupest <crupest@outlook.com> | 2020-11-09 20:45:27 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-09 20:45:27 +0800 |
commit | bed29872d2a7befff9d4cb7313cb40060326a95e (patch) | |
tree | 0439aa1d4a02a6bb5f92d48e5f585ad5d748059a /src/ui/controls | |
parent | 014aaf773fd95a7f0dd1a766023a21fb6b54a1a1 (diff) | |
download | cru-bed29872d2a7befff9d4cb7313cb40060326a95e.tar.gz cru-bed29872d2a7befff9d4cb7313cb40060326a95e.tar.bz2 cru-bed29872d2a7befff9d4cb7313cb40060326a95e.zip |
...
Diffstat (limited to 'src/ui/controls')
-rw-r--r-- | src/ui/controls/RootControl.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ui/controls/RootControl.cpp b/src/ui/controls/RootControl.cpp index c6d9a577..1ebcb6e7 100644 --- a/src/ui/controls/RootControl.cpp +++ b/src/ui/controls/RootControl.cpp @@ -27,10 +27,7 @@ render::RenderObject* RootControl::GetRenderObject() const { void RootControl::EnsureWindowCreated() { this->GetNativeWindow(true); } void RootControl::SetRect(const Rect& rect) { - auto native_window = GetNativeWindow(false); - if (!native_window) return; - - native_window->SetWindowRect(rect); + window_host_->SetWindowRect(rect); } void RootControl::Show(bool create) { |