projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix button upload - due to adding preventDefault on buttons
[roojs1]
/
roojs-core-debug.js
diff --git
a/roojs-core-debug.js
b/roojs-core-debug.js
index
c94cbef
..
d64393b
100644
(file)
--- a/
roojs-core-debug.js
+++ b/
roojs-core-debug.js
@@
-7264,7
+7264,8
@@
el.on({
* @param {Object} scope An object that becomes the scope of the handler
* @param {boolean} options
*/
* @param {Object} scope An object that becomes the scope of the handler
* @param {boolean} options
*/
- onWindowResize : function(fn, scope, options){
+ onWindowResize : function(fn, scope, options)
+ {
if(!resizeEvent){
resizeEvent = new Roo.util.Event();
resizeTask = new Roo.util.DelayedTask(function(){
if(!resizeEvent){
resizeEvent = new Roo.util.Event();
resizeTask = new Roo.util.DelayedTask(function(){
@@
-7272,12
+7273,11
@@
el.on({
});
E.on(window, "resize", function()
{
});
E.on(window, "resize", function()
{
- // it seems that even chrome likes to have a slight delay here.
- //if(Roo.isIE){
+ if (Roo.isIE) {
resizeTask.delay(50);
resizeTask.delay(50);
-
//}else
{
-
//
resizeEvent.fire(D.getViewWidth(), D.getViewHeight());
-
//
}
+
} else
{
+ resizeEvent.fire(D.getViewWidth(), D.getViewHeight());
+ }
});
}
resizeEvent.addListener(fn, scope, options);
});
}
resizeEvent.addListener(fn, scope, options);