Comment 3 for bug 366438

Revision history for this message
Stefan Wagner (wagner-stefan) wrote :

It's the same behaviour on firefox 3.0.18 which I updated just 5 Minutes ago and is the current version for 8.04 LTS xUbuntu.

On my other machine, running 9.10 with firefox 3.5. the problem is the same. And it's not just this program, but it seems to be a broken design-principle, to make windows
 - small
 - unresizable

I have two suggestions - no - three.
a) calculate the longest line.length and the number of rows*line.height. An approximated value will suffice, because for small values, the minimum-with will exceed the calculated value, for longer/more lines, the approximated value will be good, and if it is a little too long or short, it doesn't matter much. For example, with the current settings, the minimum size might be 500x300 for the dialog window. There are 50 lines of height 10 and the longest line has 50 chars, multiplied by 9 => 450 px.
Width 450 is smaller than the minimum, so we take the miinimum, 500px.
The height is bigger, so we take the 500px calculated. Check, if the user-display allows for 500x500px and use it. Else don't exceed the user-display.

b) Make the window resizeable though.

c) Make this a design-principle. If a bigger window would fit all the data, make a bigger window (if it will fit to the screen). Allways make it resizeable. Never make it modal. I find those sweet-and-(too)-small-windows in every second application. Try it yourself.

Thanks for your time.