diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2020-05-11 08:45:19 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2020-05-11 10:28:42 +0200 |
commit | 2539f1d142e0077dfeec36ef349a1f5443f1c94b (patch) | |
tree | 2bd41c698911799bb6d95ffd370978e9275c1a47 /include/vcl/button.hxx | |
parent | 5814f08c01ab7973cc83e6721ef434f5acc63a1a (diff) |
tdf#132832 calcAdjustedSize: Take max width into account
Actually take into account the preferred width when
calculating the size of radio button, checkbox and
hyperlink controls.
This e.g. makes word wrap work properly when the
multiline property is set for a checkbox, radio or hyperlink
control and the single line text exceeds the preferred width,
rather than keeping the whole text in one line that exceeds
the preferred width.
Change-Id: Id04668e4e1afe7c10a28468eff05cf04c10ae3c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93947
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'include/vcl/button.hxx')
-rw-r--r-- | include/vcl/button.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx index 6f4231f7c473..39a397ead2a1 100644 --- a/include/vcl/button.hxx +++ b/include/vcl/button.hxx @@ -333,7 +333,7 @@ public: static Image GetRadioImage( const AllSettings& rSettings, DrawButtonFlags nFlags ); - Size CalcMinimumSize() const; + Size CalcMinimumSize( long nMaxWidth = 0 ) const; virtual Size GetOptimalSize() const override; void SetToggleHdl( const Link<RadioButton&,void>& rLink ) { maToggleHdl = rLink; } |