Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
make designer maximize
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Dec 20, 2013
1 parent 453b721 commit bf1bbf6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions x-designer.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,20 @@
width: 284px;
z-index: 1;
box-shadow: 5px 0 8px rgba(0, 0, 0, 0.16);
transition: width 0.3s;
}
#tools.maximized {
width: 0;
}
#palette {
-webkit-transition: left 0.4s;
transition: left 0.4s;
}
#tree {
height: 300px;
overflow: hidden;
}
.selected-element {
#canvas:not(.maximized) .selected-element {
outline: solid 10px rgba(72, 154, 254, 0.20);
outline-offset: -2px;
}
Expand Down Expand Up @@ -86,8 +91,9 @@
this.$.canvas.selectParentElement();
},
maximizedChanged: function() {
this.$.palette.classList.toggle('maximized', this.maximized);
this.$.canvas.classList.toggle('maximized', this.maximized);
this.$.tools.classList.toggle('maximized', this.maximized);
this.$.canvas.classList.toggle('maximized', this.maximized)
this.$.canvas.dragDisabled = this.maximized;
},
inspectTarget: function(event) {
var t = event.target;
Expand Down

0 comments on commit bf1bbf6

Please sign in to comment.