kuza55 / minimalcomps

Automatically exported from code.google.com/p/minimalcomps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PushButton Doesn't Resize based on Style.fontSize

GoogleCodeExporter opened this issue · comments

What steps will reproduce the problem?
1. Change Style.fontSize to a larger number (ex)16)
2. Create a new PushButton
3. Note that the whole label does not fit on the button

What is the expected output? What do you see instead?
The button should resize to be larger based on the text - instead, the text 
does not fit on the button

What version of the product are you using? On what operating system?
0.9.7

Please provide any additional information below.
This isn't really a defect, but I don't know how to reclassify issues. :^)

Original issue reported on code.google.com by BobTheCoolGuy00@gmail.com on 19 Dec 2010 at 10:35

The components were really designed to use a single font with a single size. I 
made that stuff changeable for those who need to, but none of the layout is 
designed to take font size into account.

If buttons autosized based on font size, what would happen if someone wanted to 
make a larger size button and set the height manually? There'd have to be 
another property to allow the user to switch between manual height or auto 
height, or stay on auto-height until it was manually set.

None of these are outrageously hard, but keeping in line with the "minimal" 
paradigm, this is an edge case that I don't want to add more code to support.

Original comment by k...@bit-101.com on 31 Dec 2010 at 1:21

  • Changed state: WontFix
Scaling the component (eg PushButton) with scaleX and scaleY can be a workaround

Original comment by thipa...@gmail.com on 11 Apr 2015 at 11:11