https://bugs.documentfoundation.org/show_bug.cgi?id=136905
--- Comment #6 from Justin L <[email protected]> --- The glade file is sw/uiconfig/swriter/ui/pagesizecontrol.ui The controlling code is in sw/source/uibase/sidebar/PageSizeControl.cxx It is the only thing that uses a The sidebar is defined in svx/source/sidebar/tools/ValueSetWithTextControl.cxx It hardcodes Size aSize(250, 300); The font scales to fit inside of this box. Make the box bigger, and the font gets bigger. Obviously, due to different languages taking up more or less space than others, we can't just size this nicely for English text. This all looks pretty automatic to me. My "suggested" font size is 12pt, but of course it just gets scaled to fit inside the height of the rectangle. (The width scales to fit the length of the text (growing it if necessary) while the height seems to be the determiner of the font size. We are ValueSet::InsertItem a generic ValueSet of meType VALUESETITEM_USERDRAW, so SetOptimalSize() doesn't calculate any size (only Text and Image does that). Since we have two text strings, we can't ValueSet::InsertItem VALUESETITEM_IMAGE_AND_TEXT. So probably the only thing to do is to extend ValueSetWithTextControl to SetOptimalHeight. -- You are receiving this mail because: You are the assignee for the bug.
