Eric Ferraiuolo![]()
This module patches `Y.WidgetModality` to fix a regression that was introduced in 3.5.0.
There was a regression where browsers which actually support `position: fixed` were also getting a `scroll` listener attached to their `window`. The bad behavior was the result of faulty logic when checking `Y.UA`.
See: http://yuilibrary.com/projects/yui3/ticket/2532136
Note: You must include this module in your `use()` statement before modules which depend on "widget-modality".
Include this module in your `use()` statement before modules which depend on "widget-modality", like "panel".
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.04.12-13-50'
}).use('gallery-patch-350-widget-modality', 'panel', function(Y) {
// Create a modal panel who's mask node works correctly!
var panel = new Y.Panel({
modal : true,
render: true
});
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info