The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Margin for buttons in tool box

These changes was commited to the Birdfont repository Tue, 31 Mar 2015 16:54:43 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Mar 2015 16:54:43 +0000 (18:54 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Tue, 31 Mar 2015 16:54:43 +0000 (18:54 +0200)
commit 50d2e5a3b0863d5b9f9e7de62d8c9de54b1f2f3d
tree 545a3f0e8f6a1bab9a67a72ded10e9dfb6b69624
parent 3db3d7f1a8aecd6d0d195bfbac08005ab690649a
Margin for buttons in tool box

libbirdfont/Expander.vala
--- a/libbirdfont/Expander.vala +++ b/libbirdfont/Expander.vala @@ -135,18 +135,18 @@ first_row = true; foreach (Tool t in tool) { if (t.tool_is_visible ()) { - new_row = xt + t.w > Toolbox.allocation_width - margin_small; + new_row = xt + t.w > Toolbox.allocation_width - 7 * scale; if (new_row && !first_row) { content_height += previous.h + margin_small; xt = x; - yt += previous.h + margin_small; + yt += previous.h + 7 * scale; } t.x = xt; t.y = yt; - xt += t.w + margin_small; + xt += t.w + 7 * scale; previous = t; first_row = false;