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 668135 - location bar integration with reload/stop depends on font size
location bar integration with reload/stop depends on font size
Status: RESOLVED FIXED
Product: epiphany
Classification: Core
Component: [obsolete] URL bar
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: Epiphany Maintainers
Epiphany Maintainers
: 671812 674712 (view as bug list)
Depends on:
Blocks: 672927
 
 
Reported: 2012-01-17 20:45 UTC by Diego Escalante Urrelo (not reading bugmail)
Modified: 2012-04-24 12:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
bug with font size. (10.22 KB, image/png)
2012-01-17 20:45 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
a slight improvement over last time, with last week's jhbuild (14.55 KB, image/png)
2012-02-13 09:34 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
ephy-toolbar: fix stop/reload button alignment (1.77 KB, patch)
2012-03-27 10:48 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
Caveat of the proposed fix. (1.09 KB, image/png)
2012-03-27 10:49 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
ephy-toolbar: fix stop/reload button alignment (2.50 KB, patch)
2012-03-28 05:21 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review
Patch applied, using 3 different fonts. (12.36 KB, image/png)
2012-03-28 05:23 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details

Description Diego Escalante Urrelo (not reading bugmail) 2012-01-17 20:45:51 UTC
Created attachment 205482 [details]
bug with font size.

See screenshot. I use Droid Sans as my font, and at 10 points it's a few pixels smaller than Cantarell. The result is that the stop/reload button doesn't match the location bar.

The location bar should depend on the button, I believe.
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2012-02-13 09:34:56 UTC
Created attachment 207439 [details]
a slight improvement over last time, with last week's jhbuild
Comment 2 Xan Lopez 2012-03-12 16:12:28 UTC
*** Bug 671812 has been marked as a duplicate of this bug. ***
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 10:48:01 UTC
Created attachment 210685 [details] [review]
ephy-toolbar: fix stop/reload button alignment

When using some less taller fonts like Droid Sans (compared to
Cantarell), the stop/reload button breaks its aligment with the location
entry. Sync the button minimum height with the entry requested height.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 10:49:23 UTC
Created attachment 210686 [details]
Caveat of the proposed fix.

The extra pixel that my particular case adds to the entry causes this uglyness. It's noticeable when entering text.
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 10:53:52 UTC
Further testing reveals that our location entry adds any new pixels to its bottom padding, even if instead of 1 new pixel it is 2 new pixels (supposedly so it adds 1 on top and 1 on bottom).

Any clue?
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2012-03-27 11:01:07 UTC
(In reply to comment #5)
> Further testing reveals that our location entry adds any new pixels to its
> bottom padding, even if instead of 1 new pixel it is 2 new pixels (supposedly
> so it adds 1 on top and 1 on bottom).
> 

For the record: I am blaming GTK+ here. Not our own code. I can not see how we would have broke /that/.
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 05:21:08 UTC
Created attachment 210755 [details] [review]
ephy-toolbar: fix stop/reload button alignment

Add back/forward buttons, location entry, stop/reload button, and the
page menu button to a vertical GtkSizeGroup. This ensures that all the
toolbar elements will have the same height, regardless of things like
fonts.
Comment 8 Diego Escalante Urrelo (not reading bugmail) 2012-03-28 05:23:56 UTC
Created attachment 210756 [details]
Patch applied, using 3 different fonts.

Further testing and a million screenshots reveal that we can't do much with that extra pixel.

The padding before adjusting the size is 2px, top and bottom. When the extra pixel comes in, it has to go somewhere and it goes bottom, so it is 2px top, 3px bottom.

I don't think it is that bad as when I first saw it. We could have code to ensure that the entry receives an even number of extra pixels so the padding is equal, but I don't think it is worth it.

Plus, this likely depends on the theme being used.

GtkSizeGroup is a good solution, IMHO.

Attached tests with: Cantarell 11, Cantarell 10, Droid Sans 10.
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2012-03-31 01:26:28 UTC
Attachment 210755 [details] pushed as 71a003c - ephy-toolbar: fix stop/reload button alignment
Comment 10 Xan Lopez 2012-04-24 12:51:16 UTC
*** Bug 674712 has been marked as a duplicate of this bug. ***