summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-08-13 14:40:06 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-08-13 14:40:06 (GMT)
commitd892b78025abfe22a64bd41b88caf77d9fc5e7e1 (patch)
tree44e78047f2fa6648ee5a009f817781ff36cbcd95
parentbcfb008dce4ee5f0775bdecb9b5b4e7cfcbafdad (diff)
downloadroundcubemail-plugins-kolab-d892b78025abfe22a64bd41b88caf77d9fc5e7e1.tar.gz
Fix expanding calendar sidebar after page reload
-rw-r--r--plugins/calendar/skins/larry/templates/calendar.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/calendar/skins/larry/templates/calendar.html b/plugins/calendar/skins/larry/templates/calendar.html
index 275725c..f45b5af 100644
--- a/plugins/calendar/skins/larry/templates/calendar.html
+++ b/plugins/calendar/skins/larry/templates/calendar.html
@@ -363,7 +363,7 @@ $(document).ready(function(e){
UI.init();
new calendarview_splitter({ id:'calsidebarsplitter', p1:'#calendarsidebar', p2:'#calendar',
- orientation:'v', relative:true, start:270, min:240, size:12, offset:0 });
+ orientation:'v', relative:true, start:280, min:260, size:12, offset:0 });
new rcube_splitter({ id:'calresourceviewsplitter', p1:'#resource-dialog-left', p2:'#resource-dialog-right',
orientation:'v', relative:true, start:380, min:220, size:10, offset:-3 }).init();
@@ -494,7 +494,7 @@ function calendarview_splitter(p)
{
var me = this, time = 250;
this.handle.removeClass('sidebarclosed');
- this.pos = this.lastpos || this._min;
+ this.pos = this.lastpos > 0 ? this.lastpos : this._min;
this.p1pos.left = 10;
this.p1.show().animate({ left:'10px', width:(this.pos - this.p1pos.left - this.halfsize) + 'px' }, time);
this.p2.animate({ left:(this.pos + this.halfsize) + 'px' }, time, function(){ me.resize(); });