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/controls/text_control.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/controls/text_control.cpp')
-rw-r--r-- | src/ui/controls/text_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index f32c068f..9a799916 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -177,7 +177,7 @@ namespace cru::ui::controls } } - Size TextControl::OnMeasureContent(const Size& available_size) + Size TextControl::OnMeasureContent(const Size& available_size, const AdditionalMeasureInfo&) { ThrowIfFailed(text_layout_->SetMaxWidth(available_size.width)); ThrowIfFailed(text_layout_->SetMaxHeight(available_size.height)); |