May 28, 2013, 9:05 AM
[FIXED] [#258] Javascript error IE 8, 9 10
Hello Members.
I am kinda running my head against the wall here.
when i drag a portlet from one column to another i get an error.
the error occurs when you have a toolbar that has a dragdrop plugin on it, the tool bar does not need to be on the portlet, it just need to be in the same application..
I am getting an error on the components offsetwidth when you try to drag it, i have trace it back to this
Does anyone have a great fix for it..
I am kinda running my head against the wall here.
when i drag a portlet from one column to another i get an error.
the error occurs when you have a toolbar that has a dragdrop plugin on it, the tool bar does not need to be on the portlet, it just need to be in the same application..
I am getting an error on the components offsetwidth when you try to drag it, i have trace it back to this
// this is a part of ext.axd?v=17450
getLocation: function(i) {
if (!this.isTypeOfDD(i)) {
return null
}
if (i.getRegion) {
return i.getRegion()
}
var g = i.getEl(), m, d, c, o, n, p, a, k, h;
try {
m = Ext.Element.getXY(g)
} catch (j) {
}
if (!m) {
return null
}
d = m[0];
c = d + g.offsetWidth; // this is the part that courses the error !!!!!... // line 22815
o = m[1];
n = o + g.offsetHeight;
p = o - i.padding[0];
a = c + i.padding[1];
k = n + i.padding[2];
h = d - i.padding[3];
return new Ext.util.Region(p, a, k, h)
},isOverTarget: function(j, a, c) {
var e = this.locationCache[a.id], i, g, b, d, h;
if (!e || !this.useCache) {
e = this.getLocation(a);
this.locationCache[a.id] = e
}
if (!e) {
return false
}
a.cursorIsOver = e.contains(j);
i = this.dragCurrent;
if (!i || !i.getTargetCoord || (!c && !i.constrainX && !i.constrainY)) {
return a.cursorIsOver
}
a.overlap = null;
g = i.getTargetCoord(j.x, j.y);
b = i.getDragEl();
d = new Ext.util.Region(g.y, g.x + b.offsetWidth, g.y + b.offsetHeight, g.x);
h = d.intersect(e);
if (h) {
a.overlap = h;
return (c) ? true : a.cursorIsOver
} else {
return false
}
}
as mention this only on IE i have this "Bug" error.Does anyone have a great fix for it..
Last edited by fabricio.murta; Jun 14, 2017 at 1:58 AM.