var resize_changed = function(event) {\r
var old_width = parseInt(event.data.overlay.css('width'));\r
var delta = event.pageX + event.data.hotspot_x - old_width;\r
+\r
+ if(old_width + delta < 12) delta = 12 - old_width;\r
+ if(old_width + delta > $(window).width()) \r
+ delta = $(window).width() - old_width;\r
+ \r
event.data.overlay.css({\r
'width': old_width + delta\r
});\r
\r
$(document).bind('panel:contentChanged', function() {\r
self.onContentChanged.apply(self, arguments)\r
- });\r
- \r
- \r
+ }); \r
\r
/*\r
* Connect various buttons\r