mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUG Fix the re-layouting not being triggered in IE8.
Move onresize handler from entwine to regular event for IE8. The fromWindow::onresize does not trigger otherwise. Refer to http://open.silverstripe.org/ticket/8095
This commit is contained in:
parent
b3657147bf
commit
8455686c36
@ -5,6 +5,11 @@ jQuery.noConflict();
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
window.onresize = function(e) {
|
||||
// Entwine's 'fromWindow::onresize' does not trigger on IE8. Use synthetic event.
|
||||
$('.cms-container').trigger('windowresize');
|
||||
}
|
||||
|
||||
// setup jquery.entwine
|
||||
$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
|
||||
$.entwine('ss', function($) {
|
||||
@ -145,7 +150,10 @@ jQuery.noConflict();
|
||||
|
||||
fromWindow: {
|
||||
onstatechange: function(){ this.handleStateChange(); },
|
||||
onresize: function(){ this.redraw(); }
|
||||
},
|
||||
|
||||
'onwindowresize': function() {
|
||||
this.redraw();
|
||||
},
|
||||
|
||||
'from .cms-panel': {
|
||||
|
Loading…
x
Reference in New Issue
Block a user