diff --git a/classes/widget/WidgetHandler.class.php b/classes/widget/WidgetHandler.class.php
index ce11a2c7b..c079ef8b6 100644
--- a/classes/widget/WidgetHandler.class.php
+++ b/classes/widget/WidgetHandler.class.php
@@ -57,8 +57,6 @@
$style = "overflow:hidden;";
$style .= sprintf("%s:%s%s;", "width", $args->widget_width - $args->widget_margin_right - $args->widget_margin_left, $widget_width_type);
$style .= sprintf("margin-top:%dpx;margin-bottom:%dpx;", $args->widget_margin_top, $args->widget_margin_bottom);
-
-
$inner_style = sprintf("margin-left:%dpx;margin-right:%dpx;", $args->widget_margin_left, $args->widget_margin_right);
if($args->widget_position) {
@@ -71,7 +69,7 @@
} else {
- $style = sprintf("overflow:hidden;%s:%s%s;", "width", $args->widget_width, $widget_width_type);
+ $style = sprintf("padding:0;overflow:hidden;%s:%s%s;", "width", $args->widget_width, $widget_width_type);
$output = sprintf('
%s
', $args->widget_margin_top, $args->widget_margin_right,$args->widget_margin_bottom,$args->widget_margin_left, $output);
@@ -85,7 +83,7 @@
}
} else {
- $output = sprintf('%s
', $args->widget_margin_top, $args->widget_margin_right,$args->widget_margin_bottom,$args->widget_margin_left, $output);
+ $output = sprintf('%s
', $args->widget_margin_top, $args->widget_margin_right,$args->widget_margin_bottom,$args->widget_margin_left, $output);
}
if(__DEBUG__==3) $GLOBALS['__widget_excute_elapsed__'] += getMicroTime() - $start;
diff --git a/modules/widget/widget.controller.php b/modules/widget/widget.controller.php
index 3954add30..51e71ee20 100644
--- a/modules/widget/widget.controller.php
+++ b/modules/widget/widget.controller.php
@@ -54,6 +54,7 @@
else $style .= "float:left;";
$widget_code = sprintf('
', $blank_img_path, $widget, implode(' ',$attribute), $style);
} else {
+ $style = "clear:both;";
$widget_code = sprintf('
', "100%", $blank_img_path, $style, $widget, implode(' ',$attribute));
}