PanelContainer and TabHost make use of requestAnimationFrame in their resize implementation to to defer part of the processing until after the DOM has recalculated the dimensions. Those functions should either be rewritten to compute all sizes by hand and avoid relying on the DOM render (if applicable); or return a Promise, in order to:
- state explicitly that their processing is delayed
- allow consumers to wait for the resizing to complete before processing further, thus avoiding potential race conditions.
Those changes should be propagated through the entire resize call chain though.
PanelContainerandTabHostmake use ofrequestAnimationFramein theirresizeimplementation to to defer part of the processing until after the DOM has recalculated the dimensions. Those functions should either be rewritten to compute all sizes by hand and avoid relying on the DOM render (if applicable); or return aPromise, in order to:Those changes should be propagated through the entire
resizecall chain though.