Disk Usage Analyzer label changes format

Bug #252586 reported by Chris Gregan
4
Affects Status Importance Assigned to Milestone
Ubuntu Netbook Remix Launcher
Fix Released
Undecided
Neil J. Patel

Bug Description

<Build: UNR 20080725>
<Environment: CG - 8.9">

Summary:
Disk Usage Analyzer label changes format when mouse hovers over icon

Steps to Reproduce:
1) Click Accessories category
2) Hover mouse over Disk Usage Analyzer

Expected result:
Icon labels highlight but format is stable

Actual result:
Icon label word wrap is different when hovering mouse over icon

Chris Gregan (cgregan)
description: updated
Revision history for this message
Neil J. Patel (njpatel) wrote :

I'm unable to reproduce this on a 1024x600 screen, but I'm pretty sure I've seen it before.

What resolution are you running?

Changed in netbook-remix-launcher:
assignee: nobody → njpatel
status: New → Confirmed
Revision history for this message
Chris Gregan (cgregan) wrote :

I'm running at 1024x600 as well. Just pulled down today's build. Same behavior.

Revision history for this message
Mike (mike82) wrote :

It looks like the unselected label and the selected label have different widths, so in some cases this shows up as the text "jumping" slightly, while in others it causes the word-wrapping to be different entirely. Most of the time it has no effect.

It seems to be fixable by changing line 400 of src/launcher-icon.c from:
 clutter_actor_set_width (label, width);
to:
 clutter_actor_set_width (label, width*0.98);

To produce the same width for both labels.

I applied this fix along with an overall simplification of the highlighting/unhighlighting animation that corrects some other oddness (like temporarily disappearing labels) in my branch:

https://code.launchpad.net/~mike82/netbook-remix-launcher/work

Revision history for this message
Neil J. Patel (njpatel) wrote :

Fixed by simplifying the way in which the icons show labels (only having one).

Changed in netbook-remix-launcher:
status: Confirmed → Fix Committed
Neil J. Patel (njpatel)
Changed in netbook-remix-launcher:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.