Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:Polymer/designer
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Apr 2, 2014
2 parents 56e153f + 4d5402b commit 2ef1adc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,15 @@
selectedChanged: function() {
if (this.selected == 'code') {
this.designToCode();
this.$.code.refresh();
this.$.code.refresh();
this.async(function() {
this.$.code.focus();
// TODO(sorvell): we want to fold the <style> element.
// we should search for it rather than assume it's on the first line
// search looks like it needs a CodeMirror plugin.
this.$.code.mirror.foldCode(0);
this.$.code.mirror.execCommand('goLineDown');
});
} else {
this.$.frame.style.display = 'none';
this.codeToDesign();
Expand Down

0 comments on commit 2ef1adc

Please sign in to comment.