mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2973 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
686afa7637
commit
3de8735479
8 changed files with 38 additions and 37 deletions
|
|
@ -329,6 +329,12 @@ function doCheckWidgetDrag(e) {
|
|||
}
|
||||
}
|
||||
|
||||
function _getInt(val) {
|
||||
if(!val || val == "null") return 0;
|
||||
if(parseInt(val,10)==NaN) return 0;
|
||||
return parseInt(val,10);
|
||||
}
|
||||
|
||||
// 위젯 크기 조절 레이어를 보여줌
|
||||
var selectedSizeWidget = null;
|
||||
function doShowWidgetSizeSetup(px, py, obj) {
|
||||
|
|
@ -343,10 +349,10 @@ function doShowWidgetSizeSetup(px, py, obj) {
|
|||
|
||||
formObj.width.value = obj.style.width;
|
||||
formObj.height.value = obj.style.height;
|
||||
formObj.margin_left.value = selectedSizeWidget.getAttribute('widget_margin_left');
|
||||
formObj.margin_right.value = selectedSizeWidget.getAttribute('widget_margin_right');
|
||||
formObj.margin_top.value = selectedSizeWidget.getAttribute('widget_margin_top');
|
||||
formObj.margin_bottom.value = selectedSizeWidget.getAttribute('widget_margin_bottom');
|
||||
formObj.margin_left.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_left'));
|
||||
formObj.margin_right.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_right'));
|
||||
formObj.margin_top.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_top'));
|
||||
formObj.margin_bottom.value = _getInt(selectedSizeWidget.getAttribute('widget_margin_bottom'));
|
||||
|
||||
var widget_align = '';
|
||||
if(xIE4Up) widget_align = selectedSizeWidget.style.styleFloat;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue