Skip to content

Commit

Permalink
refs #5212 another improvement for combo of zenMode + leftMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed May 29, 2014
1 parent 78071c3 commit 9a960ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plugins/ZenMode/javascripts/zen-mode.js
Expand Up @@ -102,22 +102,23 @@ $(document).ready(function () {
}

function overMainLI () {
var $this = $(this);
var $this = $(this);
var position = $this.position();
var width = $this.width();
var height = $this.height();
var width = $this.width();
var height = $this.height();

$this.find('ul').css({
left: position.left + 'px',
display: 'block',
minWidth: width + 'px',
position: 'absolute',
top: (position.top + height) + 'px'
top: (position.top + height) + 'px',
maxHeight: 'none',
});
}

function outMainLI () {
$(this).find('ul').css({left: '', display: '', minWidth: '', position: '', top: ''});
$(this).find('ul').css({left: '', display: '', minWidth: '', position: '', top: '', maxHeight: ''});
}

function resetSubmenu()
Expand Down

0 comments on commit 9a960ae

Please sign in to comment.