Skip to content

Commit

Permalink
Fix so folders list is scrolled to the selected folder on page load (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Sep 2, 2016
1 parent ed282b5 commit b64e22e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where folder creation could fail if personal namespace contained more than one entry (#5403)
- Fix error causing empty INBOX listing in Firefox when using an URL with user:password specified (#5400)
- Fix PHP warning when handling shared namespace with empty prefix (#5420)
- Fix so folders list is scrolled to the selected folder on page load (#5424)

RELEASE 1.2.1
-------------
Expand Down
5 changes: 5 additions & 0 deletions program/js/treelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ function rcube_treelist_widget(node, p)
else
update_data();

// scroll to the selected item
if (selection) {
scroll_to_node(id2dom(selection, true));
}

container.attr('role', 'tree')
.on('focusin', function(e) {
// TODO: only accept focus on virtual nodes from keyboard events
Expand Down

0 comments on commit b64e22e

Please sign in to comment.