Settings WebUI: settings-startup-urls-page, fire iron-resize when the
scrollHeight is 1px and another when the scrollHeight is more than 1px Also fixed the following edge case. 1. Two tabs are open with chrome://settings. 2. The background tab has not been viewed. 3. In the active tab, cycle through the on startup radios. 4. Then choose "continue where you left off". 5. Make the background tab active. 6. Change the on startup setting to show the specific pages list. The issue is the iron-list render code is running when the physical height is 1px. Initially the iron-list has zero physical items. It creates a minimum default of 3 physical items. After the render is completed, the scrollHeight is updated to the correct value and more physical items need to be created. This is done with a second iron-resize. Bug: 987893 Change-Id: I3a638ed8320e776a65a5b3b783514cdfecb47419 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1758219 Commit-Queue: Esmael Elmoslimany <aee@chromium.org> Reviewed-by:Rebekah Potter <rbpotter@chromium.org> Cr-Commit-Position: refs/heads/master@{#688343}
Showing
Please register or sign in to comment