Skip to content

Commit

Permalink
MINOR Don't invoke layout() in onmatch() for cms-preview, as it cause…
Browse files Browse the repository at this point in the history
…s a gap above the menu/logo div for some reason. It's also unnecessary processing, since the preview is always hidden by default, and layout() will be triggered through redraw() when required (e.g. preview panel expansion)
  • Loading branch information
chillu committed May 18, 2012
1 parent d23e8ec commit 7c589f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions admin/javascript/LeftAndMain.Preview.js
Expand Up @@ -76,8 +76,6 @@
if(!self.hasClass('is-collapsed')) self.collapse(); if(!self.hasClass('is-collapsed')) self.collapse();
}); });


this.layout({type: 'border'});

if(this.hasClass('is-expanded')) this.expand(); if(this.hasClass('is-expanded')) this.expand();
else this.collapse(); else this.collapse();
this.data('cms-preview-initialized', true); this.data('cms-preview-initialized', true);
Expand Down

0 comments on commit 7c589f0

Please sign in to comment.