FIX: Allow desktop chrome to scroll to bottom of menu panel

This commit is contained in:
Robin Ward 2015-09-16 15:30:40 -04:00
parent 52f7ab3a06
commit 97b608f090
1 changed files with 3 additions and 2 deletions

View File

@ -46,10 +46,11 @@ export default Ember.Component.extend({
const menuTop = headerHeight();
let height;
if ((menuTop + contentHeight) < ($(window).height() - 20)) {
const winHeight = $(window).height() - 16;
if ((menuTop + contentHeight) < winHeight) {
height = contentHeight + "px";
} else {
height = $(window).height() - menuTop;
height = winHeight - menuTop;
}
$panelBody.height('100%');