The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Merge ../birdfont-2.x

These changes was commited to the Birdfont repository Wed, 15 Jun 2016 14:00:31 +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>
Wed, 15 Jun 2016 14:00:31 +0000 (16:00 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Wed, 15 Jun 2016 14:00:31 +0000 (16:00 +0200)
commit 44c4720908378bc50580d57a37ca26112796f27b
tree e1624539c963cf0a0452734fc9154d724b328a5a
parent 18197e13fcb052664087ac10635b0b9e7f429209
parent 16012e8538721db0cb4ea7621581c427ab6c2b44
Merge ../birdfont-2.x

libbirdfont/OverView.vala
--- a/libbirdfont/OverView.vala +++ b/libbirdfont/OverView.vala @@ -1164,6 +1164,15 @@ if (o.get_name () == name) { selected = i; selected_item = get_selected_item (); + + if (selected_item.y > allocation.height - OverViewItem.height) { + view_offset_y -= (selected_item.y + OverViewItem.height) - allocation.height; + } + + if (selected_item.y < 0) { + view_offset_y = 0; + } + return true; }