Jun 13, 2012, 1:15 PM
[CLOSED] Prevent dissapears window title bar
Hi,
In Ext.NET 1.x, to prevent dissapearing window title bar, executes this code:
Thanks,
In Ext.NET 1.x, to prevent dissapearing window title bar, executes this code:
Ext.onReady(function () {
Ext.override(Ext.Window.DD, {
alignElWithMouse: function (el, iPageX, iPageY) {
var oCoord = this.getTargetCoord(iPageX, iPageY);
var fly = el.dom ? el : Ext.fly(el, '_dd');
if (!this.deltaSetXY) {
var aCoord = [oCoord.x, oCoord.y];
if (oCoord.x < Millenium.Windows.WindowHideX - el.getSize().width)
oCoord.x = Millenium.Windows.WindowHideX - el.getSize().width;
if (oCoord.y < Millenium.Windows.WindowHideY)
oCoord.y = Millenium.Windows.WindowHideY;
fly.setXY(aCoord);
var newLeft = fly.getLeft(true);
var newTop = fly.getTop(true);
this.deltaSetXY = [newLeft - oCoord.x, newTop - oCoord.y];
} else {
var x = oCoord.x + this.deltaSetXY[0];
if (x < Millenium.Windows.WindowHideX - el.getSize().width)
x = Millenium.Windows.WindowHideX - el.getSize().width
var y = oCoord.y + this.deltaSetXY[1];
if (y < Millenium.Windows.WindowHideY)
y = Millenium.Windows.WindowHideY;
fly.setLeftTop(x, y);
}
this.cachePosition(oCoord.x, oCoord.y);
this.autoScroll(oCoord.x, oCoord.y, el.offsetHeight, el.offsetWidth);
return oCoord;
}
});
});
Which is equivalent Ext.NET 2.x?Thanks,
Last edited by Daniil; Jun 20, 2012 at 11:01 AM.
Reason: [CLOSED]