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 170657 - GtkLabels are vibrating on resize when the text is ellipsised and the text-adjustment is not 0.0
GtkLabels are vibrating on resize when the text is ellipsised and the text-ad...
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: general
0.23
Other Linux
: Normal normal
: Small fix
Assigned To: Behdad Esfahbod
pango-maint
Depends on:
Blocks:
 
 
Reported: 2005-03-17 11:53 UTC by Sven Herzberg
Modified: 2018-05-22 12:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase (560 bytes, text/plain)
2007-01-04 18:10 UTC, Xan Lopez
Details

Description Sven Herzberg 2005-03-17 11:53:09 UTC
1. Create a GtkLabel with long text and set the ellipsising mode (e.g. to
ellisize at the end)
2. Adjust the text to the middle (0.5)
3. Make the window so small that the text needs to be ellipsized
4. Play around resizing the window and see that the letters are jumping
partially several pixels wide

==

I would recommend to automatically set the text adjustment to 0.0 until the text
doesn't need to be ellipsized.
Comment 1 Xan Lopez 2007-01-04 18:10:28 UTC
Created attachment 79402 [details]
Testcase

Compile with gcc -o testvibration testvibration.c `pkg-config --cflags --libs gtk+-2.0`. The label will jump a few pixels back and forth when the window is resized.
Comment 2 Behdad Esfahbod 2007-01-04 19:50:31 UTC
I'll rather fix this in Pango.  All we need is to ensure that an ellipsized line has its goal width.  The extra space should probably go between the ellipsis and surrounding text.  Makes sense?
Comment 3 Matthias Clasen 2007-01-04 21:04:35 UTC
Might be a bit nicer to distribute it across the whitespace in the line, but
for now just putting it there should be fine.
Comment 4 Behdad Esfahbod 2007-05-03 01:52:39 UTC
You probably can get it distribute by turning justify on. Probably doesn't work now.  Anyway, it's a lot easier to fix this now that justification works.
Comment 5 GNOME Infrastructure Team 2018-05-22 12:09:34 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/24.