mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-18 10:49:54 +09:00
위젯관리시 margin의 경우는 언제든 적용되도록 수정
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2081 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c02e4a7523
commit
74563e253c
4 changed files with 33 additions and 22 deletions
|
|
@ -47,11 +47,12 @@
|
|||
$output = $oWidget->proc($args);
|
||||
}
|
||||
|
||||
if($args->widget_fix_width == 'Y') {
|
||||
$style = "";
|
||||
$style = "";
|
||||
$style .= sprintf("margin:%dpx %dpx %dpx %dpx;", $args->widget_margin_top, $args->widget_margin_right,$args->widget_margin_bottom,$args->widget_margin_left);
|
||||
|
||||
if($args->widget_fix_width == 'Y') {
|
||||
$style .= sprintf("%s:%spx;", "width", trim($args->widget_width));
|
||||
$style .= sprintf("margin:%dpx %dpx %dpx %dpx;", $args->widget_margin_top, $args->widget_margin_right,$args->widget_margin_bottom,$args->widget_margin_left);
|
||||
|
||||
if($args->widget_position) {
|
||||
$style .= sprintf("%s:%s;", "float", trim($args->widget_position));
|
||||
$output = sprintf('<div style="%s">%s</div>',$style, $output);
|
||||
|
|
@ -59,6 +60,8 @@
|
|||
$style .= "float:left;";
|
||||
$output = sprintf('<div class="clear"></div><div style="%s">%s</div>',$style, $output);
|
||||
}
|
||||
} else {
|
||||
$output = sprintf('<div style="%s">%s</div>',$style, $output);
|
||||
}
|
||||
|
||||
if(__DEBUG__==3) $GLOBALS['__widget_excute_elapsed__'] += getMicroTime() - $start;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue