Hi..
I have trace and the problem is in the function:
createWindow: function (config, cls) {
var me = this, win, availWidth, availHeight, cfg = Ext.applyIf(config || {}, { stateful: false, isWindow: true, constrain: true, minimizable: true, maximizable: true, center: me.centerWindow, desktop: me }); cls = cls || Ext.window.Window; win = me.add(new cls(cfg)); me.windows.add(win); win.taskButton = me.taskbar.addTaskButton(win); win.animateTarget = win.taskButton.el; win.on({ activate: me.updateActiveWindow, beforeshow: me.updateActiveWindow, deactivate: me.updateActiveWindow, minimize: me.minimizeWindow, destroy: me.onWindowClose, titlechange: function (win) { if (win.taskButton) { win.taskButton.setText(win.title); } }, iconchange: function (win) { if (win.taskButton) { win.taskButton.setIconCls(win.iconCls); } }, scope: me }); win.on({ boxready: function () { win.dd.xTickSize = me.xTickSize; win.dd.yTickSize = me.yTickSize; if (win.resizer) { win.resizer.widthIncrement = me.xTickSize; win.resizer.heightIncrement = me.yTickSize; } }, single: true }); if (win.closeAction == "hide") { win.on("close", function (win) { this.onWindowClose(win); }, this); } else { win.doClose = function () { win.doClose = Ext.emptyFn; win.el.disableShadow(); win.el.fadeOut({ listeners: { afteranimate: function () { win.destroy(); } } }); }; }
availWidth = me.body.getWidth(true); availHeight = me.body.getHeight(true); if (win.height > availHeight) { win.height = availHeight; }
if (win.width > availWidth) { win.width = availWidth; }
return win;
},
of the module desktop.js
in the 2.1 it's is different, in the version 4.2 the win.resizer.heightIncrement= null
thanks
Aurelio