Project

General

Profile

Feature #41787

mgr/dashboard: Improve workaround to redraw datatables

Added by Volker Theile about 1 year ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
dashboard/general
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
nautilus
Reviewed:
Affected Versions:
Pull request ID:

Description

The current approach to workaround the issue that datatables are not rendered correctly when they are part of a tab and the user switches between those tabs is to fire a 'resize' event to force the datatable to redraw the grid with correct column widths. This approach is like using a sledgehammer to crack a nut. The new approach simply uses Angular's change-detection mechanism. The datatable is marked as changed and Angular will do the rest for us. This should also finally solve the error that variables have been changed after Angular's change-detection has been done.


Related issues

Related to mgr - Bug #41615: mgr/dashboard: Empty datatable rendered before data has been fetched Resolved 09/03/2019
Copied to mgr - Backport #42151: nautilus: mgr/dashboard: Improve workaround to redraw datatables Resolved

History

#1 Updated by Volker Theile about 1 year ago

  • Status changed from Fix Under Review to Pending Backport

#2 Updated by Nathan Cutler about 1 year ago

  • Copied to Backport #42151: nautilus: mgr/dashboard: Improve workaround to redraw datatables added

#3 Updated by Nathan Cutler about 1 year ago

  • Related to Bug #41615: mgr/dashboard: Empty datatable rendered before data has been fetched added

#4 Updated by Lenz Grimmer 7 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF