Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Better maximization handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Egil Moeller committed Apr 11, 2011
1 parent b4a730f commit 9fa0a29
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ dojo.declare("sketchSpaceDesigner.designer.DesignerUI", [dijit._Widget, dijit._T
' <div class="topbarright"><!-- --></div>' +
' <div class="topbarcenter">' +
' <a href="http://github.com/redhog/pad" class="topbarBrand">SketchSpace</a>' +
' <div class="fullscreen" onclick="$(\'body\').toggleClass(\'sketchSpaceMaximized\');">Full screen</div>' +
' <a href="javascript:void(0);" onclick="$(\'body\').toggleClass(\'sketchSpaceMaximized\');" class="topbarmaximize" title="Toggle maximization"></a>' +
' <div class="fullscreen" dojoAttachEvent="onclick:_onMaximize">Full screen</div>' +
' <a href="javascript:void(0);" dojoAttachEvent="onclick:_onMaximize" class="topbarmaximize" title="Toggle maximization"></a>' +
' </div>' +
' <div class="specialkeyarea"><!-- --></div>' +
' </div>' +
Expand Down Expand Up @@ -81,7 +81,10 @@ dojo.declare("sketchSpaceDesigner.designer.DesignerUI", [dijit._Widget, dijit._T
if (typeof(pad) == "undefined")
$(this.toolbar).find(".tools").css({display:"none"});
},

_onMaximize: function () {
$('body').toggleClass('sketchSpaceMaximized');
this.editor.resize();
},
onSelectImage: function (imageId) {
$("body").addClass("sketchSpace");
},
Expand Down

0 comments on commit 9fa0a29

Please sign in to comment.