blagerweij:
Just pick the license that suits you. Meaning you are completely free to use it in any commercial application under the MIT license.
Printable View
Previous versions can be found here:
2.0:
http://www.eirik.net/Ext/ux/window/t...otification.js
1.3:
http://www.eirik.net/Ext/ux/window/t...otification.js
1.2:
http://www.eirik.net/Ext/ux/window/t...otification.js
1.1:
http://www.eirik.net/Ext/ux/window/t...otification.js
1.0:
http://www.eirik.net/Ext/ux/window/t...otification.js
When I find the time I'll try to make a new version compatible with 4.0.7
How to rearrange the position of the notifications when browser window is resized?
What do you mean with rearrange?
Hi,
I think it's the same case as sebbio, but more global.
When the notification manager element size change (floating window resize/move, browser resize...), linked notifications are not moved to match the new element position/size.
In case of browser resize, notifications can be out of screen. If there is a notification with "autoDestroy: false" out of screen, newer positions based on sibling position are all out of screen.
regards
I need to use this for my application.
can you please explain how to use it after the notification.js file is downloaded and included in the application.
br,
jonathan
I DON'T understand why close the window ,function hide() will be called.
I changed afterShow() as below:
afterShow: function () {
var me = this;
var notifications = me.getNotifications(me.managerAlignment);
if (notifications.length) {
me.el.alignTo(notifications[notifications.length - 1].el, me.siblingAlignment, [0, 0]);
me.xPos = me.getXposAlignedToSibling(notifications[notifications.length - 1]);
me.yPos = me.getYposAlignedToSibling(notifications[notifications.length - 1]);
} else {
me.el.alignTo(me.manager.el, me.managerAlignment, [(me.paddingX * me.paddingFactorX), (me.paddingY * me.paddingFactorY)], false);
me.xPos = me.getXposAlignedToManager();
me.yPos = me.getYposAlignedToManager();
}
Ext.Array.include(notifications, me);
me.el.animate({
to: {
x: me.xPos,
y: me.yPos,
opacity: 1
},
easing: me.slideInAnimation,
duration: me.slideInDuration,
dynamic: true
});
this.callParent(arguments);
var notifications = me.getNotifications(me.managerAlignment);
if(notifications.length > 5){
var closeCount = notifications.length - 5;
for (var i = 0; i < closeCount; i++) {
notifications[i].close();
}
}
},
it exists memory leaking!!!!!!!
I t exists memory leaking when keeping on popup windows and being closed Autoly for a long time .
how to improve ?????? Did anybody find it?
I think replacing all instances of me.hide() with me.close() in the code is the way to improve it (I haven't tried it). The default closeAction of a window is destroy. So, when you close() a window, the instance is destroyed.
I don't know either why hide is being used.
Thank you for your work!
I think this plugin should be adapted as a standard in ExtJS.