IE11 will not honor height 100% when overflow is used on the Y axis
Fixes #2672
This commit is contained in:
parent
bc161b94f7
commit
380a71d7b9
|
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1342,4 +1342,10 @@ callback()}
|
|||
img.src=source})}};return o;};assetManager=new AssetManager();if($.oc===undefined)
|
||||
$.oc={}
|
||||
$.oc.escapeHtmlString=function(string){var htmlEscapes={'&':'&','<':'<','>':'>','"':'"',"'":''','/':'/'},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))}}
|
||||
Loading…
Reference in New Issue