Print Preview: Fix an issue with iron-list in destinations dialog
The destinations iron-list in Print Preview has an initial height of 0, since it is sized based on its contents. This results in iron-list setting an optimal physical size of Infinity and rendering a list with length equal to the number of destinations that have been retrieved initially. This causes the dialog to be extremely slow in cases where there are many printers. Instead, set the height of the iron-list in JS before updating the list of printers it displays, and merge this logic with the logic to update the throbber (since it is performing similar compuations). Also removing unused listName property. Bug: 1038434 Change-Id: Id38ccc6252bb2bbbb2f99b67504328f17ccdff64 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1984717Reviewed-by:Dan Beam <dbeam@chromium.org> Commit-Queue: Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#728677}
Showing
Please register or sign in to comment