Bug 816 - Size of Buttons (e.g. close button)
: Size of Buttons (e.g. close button)
Status: NEW
: Chameleon
Core
: 1.99
: Other Linux
: P2 normal
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-11-05 11:03 by
Modified: 2004-11-11 14:38 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-11-05 11:03:23
The size of close, apply, ... buttons are hardcoded. After a translation in a 
other language, it is not possible with a width of 75 to write 'Schliessen', 
'Annehmen', ... 
This size should be variable, variable to the length of the word.
------- Comment #1 From 2004-11-06 20:04:08 -------
Good point.  We talked about a change to the buttonizer that would allow sizes
to be declared as variable, as in width="75*" which would create a button a
minimum of 75 pixels wide, but which could expand to accomodate longer text. 
Similarly width="*" would make a button just wide enough for the text.  I have
not implemented this yet, but it seems like a reasonable change.  Alternately,
we could enable expansion by default and provide a mechanism to set a fixed
width regardless of text length .

Alternately, we could put the sizes of the various buttons into the language dbf
files and then get the values based on language.  This would have the advantage
of allowing the designers to set up pre-determined sizes for each language and
ensure that they can be accomodated in the design.

One thing that worries me with variable size buttons is breaking the careful
HTML design of many of our layouts.  Not sure if this would happen or not, it is
just a point of concern. 
------- Comment #2 From 2004-11-08 07:46:56 -------
Changed target to FUTURE.
------- Comment #3 From 2004-11-08 15:25:15 -------
Instead of "75*", perhaps the following would give more control:
  - "75+": 75 pixels or more: minimum of 75 pixels, or more if text won't fit
  - "75-": 75 pixels or less: use automatic size based on label size, up to a
max of 75 pixels
  - "*": make button just wide enough for the text
------- Comment #4 From 2004-11-11 14:38:53 -------
I think that most popups can accomodate buttons of various sizes.

there are a few popups that have columns of buttons that may look a little odd
with duttons of different sizes.

I'm thinking about the search widget specifically.