Bug #15296 Display Doesn't Adjust to Non-Default Font
Submitted: 28 Nov 2005 20:07 Modified: 29 Nov 2005 15:49
Reporter: Jeff Thurston Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.1.17 OS:Windows (Windows 2000)
Assigned to: CPU Architecture:Any

[28 Nov 2005 20:07] Jeff Thurston
Description:
When a non-default font size is selected, such as larger fonts for ultra-high resolution displays, dialogs do not adjust. In some cases, the text is cut off at the bottom. In some cases, the text also wraps, effectively hiding anything that was pushed to the "next" row.

How to repeat:
1. Select OPTIONS from the TOOLS menu.
2. Select the GENERAL OPTIONS category.
3. Select Arial 11 pt for both the DEFAULT FONT and the DATA FONT.
4. Close the dialog.
5. Exit Query Browser and Restart it.

There should be NUMEROUS examples of this problem, starting with the CONNECT dialog that appears to allow selection of a server and database. Also the OPTIONS dialog is not displayed properly, specifically the categories are clipped on the left and the right. The ABOUT dialog shows this quite well.

The most annoying effect of this problem is the table editor.

Suggested fix:
A) Provide more room for many of the labels in all dialogs; make drop down combo boxes wider; make buttons wider; etc.

B) A better and more durable fix would be to test the sizes of these fonts and adjust window elements by a percentage to provide a dynamic adjustment based on the font face and size selected.
[29 Nov 2005 9:15] Michael G. Zinner
This is a limitation of the development environment we use that only supports absolut widget placement. When you choose a font you have to make sure it is not much larger than the original font or the texts will be clipped. The same for OS X.

On Linux the dialogs are built dynamicly and will scale if you select a larger font.

I personally prefere the absolut widget placement because it allows a better layout. But of course it has it's limitations when the UI is translated or a different font / size is used.
[29 Nov 2005 15:48] Jeff Thurston
I wonder if it wouldn't therefore be easier to not allow the user to change the fonts for those things that don't scale well. One could still change the data and query fonts, which don't seem to be affected since they don't rely on widget placement. Just a thought. Thanks for the quick reply!
[29 Nov 2005 15:49] Jeff Thurston
I also wonder if the dialog layouts couldn't be done with a larger font. Then, at run time, the "default" (smaller) font could be set. Just a thought.