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 736166 - sidebar: Fix sidebar-route-info alignment
sidebar: Fix sidebar-route-info alignment
Status: RESOLVED FIXED
Product: gnome-maps
Classification: Applications
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-maps-maint
gnome-maps-maint
Depends on:
Blocks:
 
 
Reported: 2014-09-05 22:52 UTC by Damián Nohales
Modified: 2014-09-11 15:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sidebar: Fix sidebar-route-info alignment (2.79 KB, patch)
2014-09-05 22:52 UTC, Damián Nohales
committed Details | Review

Description Damián Nohales 2014-09-05 22:52:46 UTC
time-info was pushing distance-info with margin, that can break
the alignment when time-info's length change.
Comment 1 Damián Nohales 2014-09-05 22:52:49 UTC
Created attachment 285537 [details] [review]
sidebar: Fix sidebar-route-info alignment

time-info was pushing distance-info with margin, that can break the
alignment when time-info's length change.

The reason to use the sidebar-route-info-wrapper GtkGrid was to avoid
a visual glitch in the map view caused when we attempt to expand
horizontally a direct child of a sidebar's container.
Comment 2 Jonas Danielsson 2014-09-08 09:20:28 UTC
Review of attachment 285537 [details] [review]:

Tried for a while to do away with the wrapper grid but failed.

Do we know where the "glitch" comes from?

::: src/sidebar.ui
@@ +184,3 @@
             <property name="can_focus">False</property>
+            <property name="margin_start">17</property>
+            <property name="margin_end">17</property>

Why 17? Is it to much? Why not 10 like the entry images for instance?
Comment 3 Damián Nohales 2014-09-08 13:42:01 UTC
Review of attachment 285537 [details] [review]:

The glitch started comes from "09becd Have sidebar push the map on reveal". I needed to hack the route entries's hexpand in that commit to avoid the glitch.

::: src/sidebar.ui
@@ +184,3 @@
             <property name="can_focus">False</property>
+            <property name="margin_start">17</property>
+            <property name="margin_end">17</property>

The entry images have 15 for margin-start and the buttons have 12 for margin-end, anyways I didn't use the same values, I set the margin by hand with Inspector until it looks well-aligned with images and buttons.
Comment 4 Jonas Danielsson 2014-09-09 05:10:28 UTC
Review of attachment 285537 [details] [review]:

ack.
Comment 5 Damián Nohales 2014-09-11 15:51:57 UTC
Attachment 285537 [details] pushed as 217ab58 - sidebar: Fix sidebar-route-info alignment