Browse Source

Fix Elastic's pretty select scroll position in Chrome (#7964)

pull/7983/head
Aleksander Machniak 4 years ago
parent
commit
786b6ab629
  1. 1
      CHANGELOG
  2. 6
      skins/elastic/ui.js

1
CHANGELOG

@ -7,6 +7,7 @@ CHANGELOG Roundcube Webmail
- Enigma: Fix bug where signature verification could fail for non-ascii bodies (#7919)
- Enigma: Fix invalid expiration dates of PGP keys on a 32bit system (#7531)
- Password: Fix broken 'hmail' driver (#7966)
- Fix Elastic's pretty select scroll position in Chrome (#7964)
- Fix so session expiration is more precise and do not depend on the garbage collector (#7576)
- Fix bug where imap_conn_options settings were ignored (#7912)
- Fix bug causing some HTML message content to be not centered in Elastic skin (#7911)

6
skins/elastic/ui.js

@ -3720,12 +3720,12 @@ function rcube_elastic_ui()
if (selected.focus().length) {
var list_parent = list.parent();
// try to scroll the list so focused element is in center
last_index = list.find('a').index(selected[0]);
last_char = index[last_index];
if (last_index > 5) {
list_parent.scrollTop(list_parent.scrollTop() + list_parent.height()/2);
// try to scroll the list so focused element is in center (for Firefox)
if (bw.mz && last_index > 5) {
list_parent.scrollTop(list_parent.scrollTop() + list_parent.height()/2 - 20);
}
}
// focus first active element on the list

Loading…
Cancel
Save