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:
Mateusz Uzdowski 2012-12-16 14:33:05 +13:00
parent b3657147bf
commit 8455686c36

View File

@ -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': {