On load, the code had been occasionally starting in undocked mode when it should have been docked at the top of the screen.
This is because the code had been setting the docker as docked to the top, but the open fin hook had been firing afterward and setting it to docked none.
After discussing with @oriondean, changed return to look for event.reason. Now any self events will update the docker edge to none (e.g. undock or drag events), others will not. This allows removal of isAnimating
The load will now consistently set the docker to top.
On load, the code had been occasionally starting in undocked mode when it should have been docked at the top of the screen.
This is because the code had been setting the docker as docked to the top, but the open fin hook had been firing afterward and setting it to docked none.
After discussing with @oriondean, changed return to look for
event.reason
. Now anyself
events will update the docker edge to none (e.g. undock or drag events), others will not. This allows removal ofisAnimating
The load will now consistently set the docker to top.