<html><head></head><body>No one has ever created a widget and wanted it to go full width? <br>
Anyone an idea? <br><br><div class="gmail_quote">On February 26, 2016 11:53:55 AM GMT+08:00, Preexo <preexo@googlemail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">I am creating a custom widget for the dashboard through a custom extension.<br />So far so good, but I would like to have my widget go across the whole<br />width. According to the framework gridster which is being used for the<br />dashboard by vtiger, this should work by assigning width:auto to the widget.<br /><br />I went through the vtiger code and thought I found the solution. So in my<br />custom widget module, in the process function I set the width to `auto`. But<br />my widget still get's only a width of 4. I thought setting the width with<br />`$widget->set("width", "auto");` before setting the widget in the viewer<br />object `$viewer->assign('WIDGET', $widget);` might work, but had no effect.<br />PleaseSee my code:<br /><br />    public function process(Vtiger_Request $request){<br />        $currentUser = Users_Record_Model::getCurrentUserModel();<br />  $viewer = $this->getViewer($request);<br />  $moduleName =
$request->getModule();<br />  $linkId = $request->get('linkid');<br />  $moduleModel = Vtiger_Module_Model::getInstance($moduleName);<br />  $data = "foobar100";<br /><br />  $widget = Vtiger_Widget_Model::getInstance($linkId,<br />$currentUser->getId());<br />  $widget->set("width", "auto");<br />  <br />  $viewer->assign('WIDGET', $widget);<br />  $viewer->assign('MODULE_NAME', $moduleName);<br />  $viewer->assign('DATA', $data);<br />        <br />        $content = $request->get('content');<br />  if(!empty($content)) {<br />   $viewer->view('dashboards/MSAReportContents.tpl', $moduleName);<br />  } else {<br />   $viewer->view('dashboards/MSAReport.tpl', $moduleName);<br />  }<br />    }<br /><br />How can I make a vtiger widget go 100% width?<br />Thanks for any help, best regards<br /><br /><br /><br /><br /><br />--<br />View this message in context: <a
href="http://vtiger-crm.2324883.n4.nabble.com/Dashboard-widget-width-size-tp18511.html">http://vtiger-crm.2324883.n4.nabble.com/Dashboard-widget-width-size-tp18511.html</a><br />Sent from the vtigercrm-developers mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br /><hr /><br /><a href="http://www.vtiger.com">http://www.vtiger.com</a>/<br /></pre></blockquote></div><br>
-- <br>
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.</body></html>