The Birdfont Source Code


All Repositories / birdfont.git / blobdiff – RSS feed

Merge ../birdfont-2.x

Changes made to libbirdfont/OverView.vala

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
--- libbirdfont/OverView.vala +++ 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; }