Call revealLastElement within runAtThisOrScheduleAtNextAnimationFrame in repl#75043
Call revealLastElement within runAtThisOrScheduleAtNextAnimationFrame in repl#75043isidorn merged 1 commit intomicrosoft:masterfrom
Conversation
|
Thanks for providing the PR. Added comments in the code |
There was a problem hiding this comment.
I do not really like this call here.
When the repl gets layouted if the last element is visible we should reveal it?
Why should we reveal it if it is already visible?
Also on layout seems like a wrong place to call this. Layout happens every time the dimensions of the repl change and on the first render.
|
I think this approach is not good, bottom line it just calls reveal more often and with a timeout. Note the height strategy we use with the tree which the repl uses. Repl gives the provisional height of each element so the tree would get an idea of the scroll size, and once the elments are in the dom the tree measuers them actually and adjusts. Thanks again for jumping on this issue! |
|
Updated the PR with a better approximation for provisional height |
|
Great work, merging in. |

Fixes #70331