Bug #18574 smarter column width ajustment
Submitted: 28 Mar 2006 11:55 Modified: 19 Sep 2008 11:21
Reporter: Phillip Oertel Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Query Browser Severity:S4 (Feature request)
Version:1.1.20, 1.2.12 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[28 Mar 2006 11:55] Phillip Oertel
Description:
It would be *great* if the columns in the results grid would be automatically sized to the with of the widest value in that column.

currently the columns are always much wider than they'd need to be to fit the value contained in it. so i often have to scroll horizontally (or resize every column by hand) in order to see a result on one screen.

think of an html-table: the columns automatically adjust to the width of the widest cell in them, if not specified otherwise.

otherwise: a great tool!

How to repeat:
select * from mysql.user (example query)

-> unless you have a REALLLY wide screen, the result will not fit in the results area. but look - there's lots of space wasted in the Host, User and Password columns; they could be much narrower.

Suggested fix:
adapt the col widths to the width of the widest data entry in them. if that would be narrower than the column header, size to the width of the column header.
[2 Oct 2007 13:41] media forest
+ 1
[19 Sep 2008 10:11] Susanne Ebrecht
Many thanks for writing a feature request.

Verified as described by using Query Browser version 1.2.12
[19 Sep 2008 10:11] Susanne Ebrecht
Bug #35290 is a duplicate of this bug here.
[19 Sep 2008 11:21] Susanne Ebrecht
This is a duplicate of bug #11461