sub-menu gets old coordinate and is rendered.
In old logic, sub-menu is rendered before received the right coordinate, so it gets old coordinate to use.
I change the logic that gives the new coordinate and then renders it.
Two test cases are failed and I fixed them due to new src code.
Fix: