diff --git a/layouts/v7/modules/Vtiger/dashboards/DashBoardWidgetContents.tpl b/layouts/v7/modules/Vtiger/dashboards/DashBoardWidgetContents.tpl index 8f81b624512528b7ed7a30ada177421632ad3f4e..7698007f575edb6de1d7604fe116db303d975900 100644 --- a/layouts/v7/modules/Vtiger/dashboards/DashBoardWidgetContents.tpl +++ b/layouts/v7/modules/Vtiger/dashboards/DashBoardWidgetContents.tpl @@ -13,11 +13,12 @@ {if count($DATA) gt 0 } <input class="widgetData" type=hidden value='{Vtiger_Util_Helper::toSafeHTML(ZEND_JSON::encode($DATA))}' /> <input class="yAxisFieldType" type="hidden" value="{$YAXIS_FIELD_TYPE}" /> - <div style="margin:0px 10px;"> - <div> + <div class="row" style="margin:0px 10px;"> + <div class="col-lg-11"> <div class="widgetChartContainer" name='chartcontent' style="height:220px;min-width:300px; margin: 0 auto"></div> <br> </div> + <div class="col-lg-1"></div> </div> {else} <span class="noDataMsg"> diff --git a/layouts/v7/modules/Vtiger/resources/DashBoard.js b/layouts/v7/modules/Vtiger/resources/DashBoard.js index 5c46c09ce7907b5af4f3496098c042ab80fe6e7a..733a9f480b72c94bf7894df5742b1def0c57df54 100644 --- a/layouts/v7/modules/Vtiger/resources/DashBoard.js +++ b/layouts/v7/modules/Vtiger/resources/DashBoard.js @@ -332,6 +332,7 @@ Vtiger.Class("Vtiger_DashBoard_Js",{ if(widgetChartContainer.length > 0){ widgetChartContainer.css("height",widget.height() - 60); } + widgetChartContainer.html(''); Vtiger_Widget_Js.getInstance(widget, widgetName); widget.trigger(Vtiger_Widget_Js.widgetPostResizeEvent); thisInstance.saveWidgetSize(widget);