mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
위젯을 다룰때 세로 높이를 비우거나 100%로 하면 컨텐츠의 크기에 맞춰지도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3376 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
44e4fc4484
commit
30deb80cfc
1 changed files with 9 additions and 1 deletions
|
|
@ -481,7 +481,15 @@ function doApplyWidgetSize(fo_obj) {
|
|||
if(width) selectedSizeWidget.style.width = width;
|
||||
|
||||
var height = _getSize(fo_obj.height.value);
|
||||
if(height) selectedSizeWidget.style.height = height;
|
||||
if(height && height != "100%") selectedSizeWidget.style.height = height;
|
||||
else {
|
||||
selectedSizeWidget.style.height = '';
|
||||
var widgetBorder = xGetElementsByClassName('widgetBorder',selectedSizeWidget);
|
||||
for(var i=0;i<widgetBorder.length;i++) {
|
||||
var obj = widgetBorder[i];
|
||||
obj.style.height = '';
|
||||
}
|
||||
}
|
||||
|
||||
selectedSizeWidget.style.borderTop = _getBorderStyle(fo_obj.border_top_color, fo_obj.border_top_thick, fo_obj.border_top_type);
|
||||
selectedSizeWidget.style.borderBottom = _getBorderStyle(fo_obj.border_bottom_color, fo_obj.border_bottom_thick, fo_obj.border_bottom_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue