Using Alpha 360 Erp - 1.1, Screen Resolution is 1920 x 1080
Looks like the placement is TAB_Dynamic is not right when we hide SIDE_Menu and again show it. I changed the procedure as follows, looks like it's working correct.
Your calculation is as comments. The arbitary value of 5 & 8 is required (in my setup) as there is a right margin when we load the mainmenu for the first time. To keep that right margin (roughly calculated to 5), we deduct that value when we hide the SIDE_Menu.
When we show the SIDE_menu, there need to be a gap between SIDE_Menu & TAB_Dynamic and I arrived the value to 8. That value I've added to arrive the new X position of TAB_Dynamic.
And Width of TAB_Dynamic to be adjusted to 13 (5 + 8) to keep the right margin in tact.
Could you please verify whether these calculations ?