IE11 will not honor height 100% when overflow is used on the Y axis

Fixes #2672
This commit is contained in:
Samuel Georges 2017-03-04 14:55:19 +11:00
parent bc161b94f7
commit 380a71d7b9
2 changed files with 35 additions and 1 deletions

View File

@ -208,3 +208,31 @@ $.fn.extend({
}
})
*/
/*
* Browser Fixes
* - If another fix using JS is necessary, move this logic to backend.fixes.js
*/
/*
* Internet Explorer v11
* - IE11 will not honor height 100% when overflow is used on the Y axis.
*/
if (!!window.MSInputMethodContext && !!document.documentMode) {
$(window).on('resize', function() {
fixMediaManager()
fixSidebar()
})
function fixMediaManager() {
var $el = $('div[data-control="media-manager"] .control-scrollpad')
$el.height($el.parent().height())
}
function fixSidebar() {
var $el = $('#layout-sidenav'),
menuHeight = $('#layout-mainmenu').height()
$el.height(Math.max($('#layout-body').innerHeight(), $(window).height() - menuHeight))
}
}

View File

@ -1342,4 +1342,10 @@ callback()}
img.src=source})}};return o;};assetManager=new AssetManager();if($.oc===undefined)
$.oc={}
$.oc.escapeHtmlString=function(string){var htmlEscapes={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;',"'":'&#x27;','/':'&#x2F;'},htmlEscaper=/[&<>"'\/]/g
return(''+string).replace(htmlEscaper,function(match){return htmlEscapes[match];})}
return(''+string).replace(htmlEscaper,function(match){return htmlEscapes[match];})}
if(!!window.MSInputMethodContext&&!!document.documentMode){$(window).on('resize',function(){fixMediaManager()
fixSidebar()})
function fixMediaManager(){var $el=$('div[data-control="media-manager"] .control-scrollpad')
$el.height($el.parent().height())}
function fixSidebar(){var $el=$('#layout-sidenav'),menuHeight=$('#layout-mainmenu').height()
$el.height(Math.max($('#layout-body').innerHeight(),$(window).height()-menuHeight))}}