diff options
| author | Yuqian Yang <crupest@crupest.life> | 2025-11-22 21:24:18 +0800 |
|---|---|---|
| committer | Yuqian Yang <crupest@crupest.life> | 2025-11-22 21:24:18 +0800 |
| commit | 8f8b7dfd056dfa23dd1989d3f3dfd3d5d91d0168 (patch) | |
| tree | 435917530667bd4532c9bb70826c5796ca1ffa6a /src/ui/style/Styler.cpp | |
| parent | 7ce185d5a3fcfad8c8f746f95f3d50a8829faac4 (diff) | |
| download | cru-8f8b7dfd056dfa23dd1989d3f3dfd3d5d91d0168.tar.gz cru-8f8b7dfd056dfa23dd1989d3f3dfd3d5d91d0168.tar.bz2 cru-8f8b7dfd056dfa23dd1989d3f3dfd3d5d91d0168.zip | |
Clean measure requirement codes.
Diffstat (limited to 'src/ui/style/Styler.cpp')
| -rw-r--r-- | src/ui/style/Styler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/style/Styler.cpp b/src/ui/style/Styler.cpp index 251d403c..b0b14c61 100644 --- a/src/ui/style/Styler.cpp +++ b/src/ui/style/Styler.cpp @@ -31,7 +31,7 @@ void CursorStyler::Apply(controls::Control* control) const { } void PreferredSizeStyler::Apply(controls::Control* control) const { - control->SetPreferredSize(size_); + control->SetSuggestSize(size_); } void MarginStyler::Apply(controls::Control* control) const { |
