[Vtigercrm-developers] dashboard widget change position after tab reload

Uma S uma.s at vtiger.com
Fri May 29 09:32:08 GMT 2020


Hi omri yona,

Thanks! for the detailed analysis made on widget positioning.

Please do file an issue in code.vtiger.com, Also submit the merge request
for your fix.

We will be happy to review and accept your Contributions.

On Thu, May 28, 2020 at 5:02 PM nilay khatri <nilay.spartan at gmail.com>
wrote:

> That's a valid issue, please log an issue at code.vtiger.com with the
> findings.
>
> On Wed, May 27, 2020 at 2:50 PM omri yona <omri.yona at gmail.com> wrote:
>
>> Vtiger 7.2
>> I notice that after reload dashboard tab the wighets posion change. The
>> main change is that thay move to the left.
>> eg - if i order
>> wighet1 as row:1 col:2 + wighet2 row:1 co:3 after reload
>> wighet1 as row:1 col:1 + wighet2 row:1 co:2
>>
>> I found that in file: layouts/v7/modules/Vtiger/resources/DashBoard.js
>> in function: registerGridster()
>> at the end its save the posion and change my pos
>> //used when after gridster is loaded
>> thisInstance.savePositions(activeGridster.find('.dashboardWidget'))
>>
>> keep digin and found out that in the same function when the wight add
>> if(item.attr("data-position")=="false"){
>> Vtiger_DashBoard_Js.gridster.add_widget(item, columns, rows);
>> } else {
>> Vtiger_DashBoard_Js.gridster.add_widget(item, columns, rows);
>> }
>> no posision was sent
>> the function add_widget in file
>> \libraries\jquery\gridster\jquery.gridster.min.js
>> can get posision in e/f add_widget=function(b,c,d,e,f){var
>> g;c||(c=1),d||(d=1),!e&!f?g=this.next_position(c,d):(g={col:e,row:f}
>>
>> after change the
>> Vtiger_DashBoard_Js.gridster.add_widget(item, columns, rows);
>> to be
>> Vtiger_DashBoard_Js.gridster.add_widget(item, columns,
>> rows,item.attr("data-col"),item.attr("data-row"));
>> its look like its work.
>> I google it and didn't found any post on this issue so I am not sure it's
>> a bug or I do samting wrong.
>> there is any one that found that issue?
>>
>> thank you,
>> Omri
>> _______________________________________________
>> http://www.vtiger.com/
>
> _______________________________________________
> http://www.vtiger.com/



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20200529/7b560edf/attachment.html>


More information about the vtigercrm-developers mailing list