After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 527416 - Width of columns in people stock browser
Width of columns in people stock browser
Status: RESOLVED FIXED
Product: bigboard
Classification: Deprecated
Component: People Stock
unspecified
Other Linux
: Normal normal
: ---
Assigned To: bigboard-maint
bigboard-maint
Depends on:
Blocks:
 
 
Reported: 2008-04-10 20:31 UTC by Owen Taylor
Modified: 2008-05-07 21:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2008-04-10 20:31:30 UTC
In the people stock browser, if people have:

 A) Long names (in particular for xmpp/email addresses when we 
    don't have a better name)
 B) Long away messages
 C) Long music titles/albums.

Then the columns can get very wide, and the browser looks ugly.

For away/music messages, I think the solution is easy. Set the the
size mode of the text labels to ellipsize and let the width of the columns be determined by the name.

For the names it gets harder because we do want to size based on the
size of the names, but only up to a point. Simple fix is to use the
max_column_width property of the overview layout/table that we use
in the app browser, though that is in pixels, which is less than ideal,
since the names are in (if I'm not mistaken) the system font size.

Two different slightly more complicated approaches:

 - Bind hippo_canvas_style_get_length(), use it to 
   self.get_style().get_length("-hippo-max-column-width") which could
   be specified in ems in our CSS file.

 - Add a max-natural-width capability to HippoCanvasBox that would
   clamp the natural width to the min of max-natural-width and the
   minimum of the width of the item. (This a little similar to 
   max-width in CSS, maybe close enough to reuse the name.)

Something else to investigate is that I seem to get one column even when
it looks like two columns would fit ... the flip point between one and
two columns is in the wrong place, so probably some bug in OverviewLayout.
Comment 1 Owen Taylor 2008-04-10 20:35:38 UTC
Hmm, ellipsizing the away/music won't help,and they may already be ellipsized, since what determines the column is the *natural* width of the item, not
the max width.

So the main quick fix would be to use the max_column_width for OverviewLayout.
Comment 2 Owen Taylor 2008-04-11 19:59:40 UTC
Taking.
Comment 3 Owen Taylor 2008-05-07 21:55:42 UTC
r7293 | otaylor | 2008-04-11 16:47:20 -0400 (Fri, 11 Apr 2008) | 3 lines

Set a max column width and adjust sizes so that we get two columns by default.
http://bugzilla.gnome.org/show_bug.cgi?id=527416