Fix Mardown Drawer top position meansurement trigger
What does this MR do and why?
When the Markdown drawer renders it requires the top position to determent where to render. I originally had this to be measured when the template is rendered but it was causing race conditions as performance bar content renderers are too slow sometimes. I moved the measuring action to happen on the open drawer.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
-
Checkout this branch
-
navigate to the advanced search page:
http://your.gdk:3000/search
-
If you don't have advancer search enabled do so. (step by step)
-
make sure you have FF enabled (run
Feature.enable(:search_page_vertical_nav)
in rails console) -
In a case you don't see
Syntax options
button on the search page apply the syntax-options.patch -
after the page loads verify that the syntax options drawer loads properly without performance bar
-
verify that the page loads with the performance bar enabled
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #329234 (closed)