The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Fix scrolling in table layout

These changes was commited to the Birdfont repository Fri, 17 Apr 2015 17:23:40 +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>
Fri, 17 Apr 2015 17:23:40 +0000 (19:23 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Fri, 17 Apr 2015 17:23:40 +0000 (19:23 +0200)
commit d51b484e5079c92539a73d229fe036bcdcbc5f5f
tree 07f194a7287a713f18b45aa0ed4c8be6d0385eb5
parent 94227f901f9668c028f2482f32fc7efda0e966c1
Fix scrolling in table layout

libbirdfont/TableLayout.vala
--- a/libbirdfont/TableLayout.vala +++ b/libbirdfont/TableLayout.vala @@ -210,6 +210,10 @@ if (scroll + allocation.height >= content_height) { scroll = content_height - allocation.height; + + if (scroll < 0) { + scroll = 0; + } } update_scrollbar ();