diff options
| author | crupest <crupest@outlook.com> | 2018-12-05 15:51:05 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2018-12-05 15:51:05 +0800 |
| commit | 01b0378ed32eb2011863393892717483004cc375 (patch) | |
| tree | 5cd487e9359c4680a81cd77c304935539c10406e /src/ui/window.cpp | |
| parent | 1166da612f01172270114921eb6785998ef88476 (diff) | |
| download | cru-01b0378ed32eb2011863393892717483004cc375.tar.gz cru-01b0378ed32eb2011863393892717483004cc375.tar.bz2 cru-01b0378ed32eb2011863393892717483004cc375.zip | |
Avoid search for ancestor in measure.
Diffstat (limited to 'src/ui/window.cpp')
| -rw-r--r-- | src/ui/window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp index ac79392b..b4569366 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -499,14 +499,14 @@ namespace cru::ui void Window::Relayout() { - Measure(GetSize()); + Measure(GetSize(), AdditionalMeasureInfo{}); OnLayoutCore(Rect(Point::Zero(), GetSize())); is_layout_invalid_ = false; } void Window::SetSizeFitContent(const Size& max_size) { - Measure(max_size); + Measure(max_size, AdditionalMeasureInfo{}); SetClientSize(GetDesiredSize()); OnLayoutCore(Rect(Point::Zero(), GetSize())); is_layout_invalid_ = false; |
