위젯관리시 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

@ -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;