aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.hpp
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.hpp
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.hpp')
-rw-r--r--src/ui/controls/text_control.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/controls/text_control.hpp b/src/ui/controls/text_control.hpp
index 1e4c985d..fddd8ec7 100644
--- a/src/ui/controls/text_control.hpp
+++ b/src/ui/controls/text_control.hpp
@@ -62,7 +62,7 @@ namespace cru::ui::controls
protected:
void SetSelectable(bool is_selectable);
- Size OnMeasureContent(const Size& available_size) override final;
+ Size OnMeasureContent(const Size& available_size, const AdditionalMeasureInfo&) override final;
virtual void RequestChangeCaretPosition(unsigned position);