aboutsummaryrefslogtreecommitdiff
path: root/src/ui/controls/text_control.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-02 01:09:35 +0800
committercrupest <crupest@outlook.com>2018-10-02 01:09:35 +0800
commit040a6c18f18100b825a56443a73aa1de64e4518c (patch)
treea271bddb244fa2041f14f8d46d249457cee09e5f /src/ui/controls/text_control.h
parenta3b78397f71c35e51681104b572de06a1780e4ee (diff)
downloadcru-040a6c18f18100b825a56443a73aa1de64e4518c.tar.gz
cru-040a6c18f18100b825a56443a73aa1de64e4518c.tar.bz2
cru-040a6c18f18100b825a56443a73aa1de64e4518c.zip
Make text box use border delegate. Fix layout bug in margin container.
Diffstat (limited to 'src/ui/controls/text_control.h')
-rw-r--r--src/ui/controls/text_control.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/controls/text_control.h b/src/ui/controls/text_control.h
index a24766dc..2ead7c54 100644
--- a/src/ui/controls/text_control.h
+++ b/src/ui/controls/text_control.h
@@ -76,7 +76,9 @@ namespace cru::ui::controls
void OnLoseFocusCore(events::FocusChangeEventArgs& args) override;
- Size OnMeasure(const Size& available_size) override final;
+ Size OnMeasure(const Size& available_size) override;
+
+ Size TextMeasureWithPadding(const Size& available_size, const Thickness& padding);
virtual void RequestChangeCaretPosition(unsigned position);