From 112f28bf81d2b0cd005ad233b6d559dbc70fb9a0 Mon Sep 17 00:00:00 2001 From: zero Date: Mon, 19 Nov 2007 05:14:44 +0000 Subject: [PATCH] =?UTF-8?q?=EC=9C=84=EC=A0=AF=ED=8E=B8=EC=A7=91=EC=8B=9C?= =?UTF-8?q?=20=EC=9E=98=EB=AA=BB=EB=90=9C=20=EC=BB=AC=EB=9F=AC=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EB=A1=9C=20=EC=9D=B8=ED=95=B4=20IE=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=98=A4=EB=A5=98=EB=82=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2996 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/widget/tpl/js/widget.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/widget/tpl/js/widget.js b/modules/widget/tpl/js/widget.js index 4fc220c59..30953cf5e 100644 --- a/modules/widget/tpl/js/widget.js +++ b/modules/widget/tpl/js/widget.js @@ -446,12 +446,13 @@ function _getSize(value) { function _getBorderStyle(fld_color, fld_thick, fld_type) { var color = fld_color.value; + color = color.replace(/^#/,''); if(!color) color = '#FFFFFF'; else color = '#'+color; var width = fld_thick.value; if(!width) width = '0px'; else width = parseInt(width,10)+'px'; - var style = fld_type.value; + var style = fld_type.options[fld_type.selectedIndex].value; if(!style) style = 'solid'; var str = color+' '+width+' '+style; @@ -480,6 +481,7 @@ function doApplyWidgetSize(fo_obj) { selectedSizeWidget.style.borderBottom = _getBorderStyle(fo_obj.border_bottom_color, fo_obj.border_bottom_thick, fo_obj.border_bottom_type); selectedSizeWidget.style.borderLeft = _getBorderStyle(fo_obj.border_left_color, fo_obj.border_left_thick, fo_obj.border_left_type); selectedSizeWidget.style.borderRight = _getBorderStyle(fo_obj.border_right_color, fo_obj.border_right_thick, fo_obj.border_right_type); + selectedSizeWidget.style.marginTop = _getSize(fo_obj.margin_top.value); selectedSizeWidget.style.marginRight = _getSize(fo_obj.margin_right.value); selectedSizeWidget.style.marginBottom = _getSize(fo_obj.margin_bottom.value);