I had a similar issue with the side bar in mendix 9.0.5 where the side bar was closed but the content of the page on the right side did not “detect” that the side bar was closed (and therefore, messed with the size of the elements).
I was able to resolve the issue using a nanoflow to toggle the side bar (toggle sidebar action).