Resize boundries are now set at (12, window.width())
var noHookAction = args.splice(0,1)[0]
var result = false;
var noHookAction = args.splice(0,1)[0]
var result = false;
- // $.log('calling hook: ', hookName, 'with args: ', args);
+ $.log('calling hook: ', hookName, 'with args: ', args);
if(this.hooks && this.hooks[hookName])
result = this.hooks[hookName].apply(this, args);
else if (noHookAction instanceof Function)
if(this.hooks && this.hooks[hookName])
result = this.hooks[hookName].apply(this, args);
else if (noHookAction instanceof Function)
var extra_buttons = $('span.panel-toolbar-extra', toolbar);
var placeholder = $('div.panel-toolbar span.panel-toolbar-extra', this.wrap);
placeholder.replaceWith(extra_buttons);
var extra_buttons = $('span.panel-toolbar-extra', toolbar);
var placeholder = $('div.panel-toolbar span.panel-toolbar-extra', this.wrap);
placeholder.replaceWith(extra_buttons);
var action_buttons = $('button', extra_buttons);
var action_buttons = $('button', extra_buttons);
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
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
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
$(document).bind('panel:contentChanged', function() {\r
self.onContentChanged.apply(self, arguments)\r
\r
/*\r
* Connect various buttons\r
\r
/*\r
* Connect various buttons\r
},
toolbarResized: function() {
},
toolbarResized: function() {
- $('.iframe-container', self.contentDiv).css('top',
- $('.toolbar', self.contentDiv).outerHeight() );
+ $('.iframe-container', this.contentDiv).css('top',
+ $('.toolbar', this.contentDiv).outerHeight() );