diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html index 0b8350c4..4f3228c0 100644 --- a/plugins/calendar/skins/larry/templates/calendar.html +++ b/plugins/calendar/skins/larry/templates/calendar.html @@ -262,14 +262,15 @@ $(document).ready(function(e){ // animation to unfold list search box $('#calendars .boxtitle a.search').click(function(e){ - var box = $('#calendars .listsearchbox'), + var title = $('#calendars .boxtitle'), + box = $('#calendars .listsearchbox'), dir = box.is(':visible') ? -1 : 1; box.slideToggle({ duration: 160, progress: function(animation, progress) { if (dir < 0) progress = 1 - progress; - $('#calendars .scroller').css('top', (34 + 34 * progress) + 'px'); + $('#calendars .scroller').css('top', (title.outerHeight() + 34 * progress) + 'px'); }, complete: function() { box.toggleClass('expanded'); diff --git a/plugins/kolab_addressbook/kolab_addressbook.js b/plugins/kolab_addressbook/kolab_addressbook.js index c213a6ba..ee60569d 100644 --- a/plugins/kolab_addressbook/kolab_addressbook.js +++ b/plugins/kolab_addressbook/kolab_addressbook.js @@ -107,14 +107,15 @@ if (window.rcmail) { rcmail.gettext('findaddressbooks', 'kolab_addressbook') + '') .appendTo('#directorylistbox h2.boxtitle') .click(function(e){ - var box = $('#directorylistbox .listsearchbox'), + var title = $('#directorylistbox .boxtitle'), + box = $('#directorylistbox .listsearchbox'), dir = box.is(':visible') ? -1 : 1; box.slideToggle({ duration: 160, progress: function(animation, progress) { if (dir < 0) progress = 1 - progress; - $('#directorylistbox .scroller').css('top', (34 + 34 * progress) + 'px'); + $('#directorylistbox .scroller').css('top', (title.outerHeight() + 34 * progress) + 'px'); }, complete: function() { box.toggleClass('expanded'); diff --git a/plugins/kolab_notes/skins/larry/templates/notes.html b/plugins/kolab_notes/skins/larry/templates/notes.html index 6f6fec60..e5f0edf7 100644 --- a/plugins/kolab_notes/skins/larry/templates/notes.html +++ b/plugins/kolab_notes/skins/larry/templates/notes.html @@ -166,14 +166,15 @@ $(document).ready(function(e){ // animation to unfold list search box $('#notebooksbox .boxtitle a.search').click(function(e){ - var box = $('#notebooksbox .listsearchbox'), + var title = $('#notebooksbox .boxtitle'), + box = $('#notebooksbox .listsearchbox'), dir = box.is(':visible') ? -1 : 1; box.slideToggle({ duration: 160, progress: function(animation, progress) { if (dir < 0) progress = 1 - progress; - $('#notebooksbox .scroller').css('top', (34 + 34 * progress) + 'px'); + $('#notebooksbox .scroller').css('top', (title.outerHeight() + 34 * progress) + 'px'); }, complete: function() { box.toggleClass('expanded'); diff --git a/plugins/tasklist/skins/larry/templates/mainview.html b/plugins/tasklist/skins/larry/templates/mainview.html index 5a2baf9c..3003067a 100644 --- a/plugins/tasklist/skins/larry/templates/mainview.html +++ b/plugins/tasklist/skins/larry/templates/mainview.html @@ -201,14 +201,15 @@ $(document).ready(function(e){ // animation to unfold list search box $('#tasklistsbox .boxtitle a.search').click(function(e){ - var box = $('#tasklistsbox .listsearchbox'), + var title = $('#tasklistsbox .boxtitle'), + box = $('#tasklistsbox .listsearchbox'), dir = box.is(':visible') ? -1 : 1; box.slideToggle({ duration: 160, progress: function(animation, progress) { if (dir < 0) progress = 1 - progress; - $('#tasklistsbox .scroller').css('top', (34 + 34 * progress) + 'px'); + $('#tasklistsbox .scroller').css('top', (title.outerHeight() + 34 * progress) + 'px'); }, complete: function() { box.toggleClass('expanded');