mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#443 widget.js에서 사용되는 float라는 변수명을 cssFloat로 변경하여 문제 해결
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4062 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5f7425d22c
commit
43e3ac2516
1 changed files with 7 additions and 7 deletions
|
|
@ -32,9 +32,9 @@ function getStyle(obj) {
|
|||
|
||||
// float: 값을 구하는게 IE랑 그외가 다름
|
||||
function getFloat(obj) {
|
||||
var float = xIE4Up?obj.style.styleFloat:obj.style.cssFloat;
|
||||
if(!float) float = 'left';
|
||||
return float;
|
||||
var cssFloat = xIE4Up?obj.style.styleFloat:obj.style.cssFloat;
|
||||
if(!cssFloat) cssFloat = 'left';
|
||||
return cssFloat;
|
||||
}
|
||||
function setFloat(obj, fl) {
|
||||
if(xIE4Up) obj.style.styleFloat = fl;
|
||||
|
|
@ -724,15 +724,15 @@ function widgetDrag(tobj, dx, dy) {
|
|||
|
||||
var pWidth = xWidth(tobj.parentNode);
|
||||
|
||||
var float = getFloat(tobj.parentNode);
|
||||
if(!float) float = 'left';
|
||||
var cssFloat = getFloat(tobj.parentNode);
|
||||
if(!cssFloat) cssFloat = 'left';
|
||||
|
||||
// 위젯 리사이즈 (우측)
|
||||
if(tobj.className == 'widgetResize' || tobj.className == 'widgetBoxResize') {
|
||||
if(nx < sx+minWidth) nx = sx+minWidth;
|
||||
if(nx > zoneRight) nx = zoneRight;
|
||||
|
||||
if(float == 'right') nx = sx + pWidth;
|
||||
if(cssFloat == 'right') nx = sx + pWidth;
|
||||
|
||||
var new_width = nx - sx;
|
||||
if(new_width < minWidth) new_width = minWidth;
|
||||
|
|
@ -754,7 +754,7 @@ function widgetDrag(tobj, dx, dy) {
|
|||
|
||||
if(nx < zoneLeft) nx = zoneLeft;
|
||||
|
||||
if(float == 'left') nx = sx;
|
||||
if(cssFloat == 'left') nx = sx;
|
||||
|
||||
var new_width = pWidth + (sx - nx);
|
||||
if(new_width < minWidth) new_width = minWidth;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue