위젯을 박스위젯 밖으로 꺼낼때 잘못된 곳에 들어가는 버그 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2984 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-16 11:03:32 +00:00
parent 9124d18a91
commit f6a0403971

View file

@ -730,8 +730,7 @@ function widgetDrag(tobj, dx, dy) {
var ll = parseInt(l,10) + parseInt(xWidth(tobj.parentNode),10);
var tt = parseInt(t,10) + parseInt(xHeight(tobj.parentNode),10);
if( (tobj.xDPX < l || tobj.xDPX > ll) || (tobj.xDPY < t || tobj.xDPY > tt) ) {
var target_obj = tobj.parentNode;
tobj.parentNode.parentNode.insertBefore(tobj, tobj.parentNode);
zonePageObj.insertBefore(tobj, tobj.parentNode.parentNode.parentNode);
doFitBorderSize();
return;
}