위젯관리시 margin의 경우는 언제든 적용되도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2081 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-07-30 05:52:04 +00:00
parent c02e4a7523
commit 74563e253c
4 changed files with 33 additions and 22 deletions

View file

@ -133,10 +133,13 @@ function doFillWidgetVars() {
}
var marginLeft = parseInt(selected_node.style.marginLeft.replace(/px$/,''),10);
var marginRight = parseInt(selected_node.style.marginRight.replace(/px$/,''),10);
var border = parseInt(selected_node.style.border);
var marginLeft = 0;
if(selected_node.style.marginLeft) marginLeft = parseInt(selected_node.style.marginLeft.replace(/px$/,''),10);
var marginRight = 0;
if(selected_node.style.marginRight) marginRight = parseInt(selected_node.style.marginRight.replace(/px$/,''),10);
var border = 0;
if(selected_node.style.border) border= parseInt(selected_node.style.boarder.replace(/px$/,''),10);
fo_obj.widget_width.value = xWidth(selected_node) + marginLeft + marginRight - 6;
// 컬러셋 설정