1. Focus must be moved to Text and Table dialogs once opened
2. Dialog open transition/animation happens for Text and Table dialogs.
This has previously been working but stopped working when we introduced the "adaptive popup sizes".
More specifically, setting the 'top' attribute before the animation/transition is triggered prevents the transition from ever happening. This is bad since the focus code relies on the 'transitionend' which then never happens.
1. Set the correct 'top' after the dialog is appended to the DOM so that the transition happens.
2. Use a timeout() instead of waiting for 'transitionend'.
This is where the 'top' is currently set: