diff options
author | Philip Chimento <philip@endlessm.com> | 2014-01-20 15:05:16 -0200 |
---|---|---|
committer | Philip Chimento <philip@endlessm.com> | 2014-01-22 22:45:13 -0200 |
commit | 46f90426c60a894d97cd2f922af3d1989f4f7e96 (patch) | |
tree | 52413502e8f7470b4049542b00b1cca4379953b0 /wikipedia/presenters | |
parent | a534c68a1ef3dc5cdc49a69d3277b9c85c25e044 (diff) |
Move and realign category button
The category "go" arrow should never overlap the label text, so this
moves it out of its overlay and puts it in the same layer as the label.
The label now uses baseline alignment, and we can get rid of the hacky
extra padding in the CSS.
Currently, the innards of the category button look like this:
+---------------------------------------+
| Grid, hexpand: TRUE, halign: FILL |
| +------------------+ +--------------+ |
| | Label | | Arrow button | |
| | halign: START | | halign: END | |
| | valign: BASELINE | | valign: END | |
| +------------------+ +--------------+ |
+---------------------------------------+
The arrow button does not have valign BASELINE, because that would
align it so it was even with the first line of the label if the label
was wrapped over two lines:
(GOOD) (BAD)
HISTORY HISTORY >
& POLITICS > & POLITICS
Also, I have removed the "width-chars" property of the label, because,
as in the programming app in a commit which I cannot now find, when the
label wraps, the width-chars property makes it request a very odd size.
[endlessm/eos-sdk#505]
Diffstat (limited to 'wikipedia/presenters')
0 files changed, 0 insertions, 0 deletions