aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-12-05 15:51:05 +0800
committercrupest <crupest@outlook.com>2018-12-05 15:51:05 +0800
commit01b0378ed32eb2011863393892717483004cc375 (patch)
tree5cd487e9359c4680a81cd77c304935539c10406e /src/ui/controls/text_control.cpp
parent1166da612f01172270114921eb6785998ef88476 (diff)
downloadcru-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.cpp2
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));