When I a try to dynamically change the left padding of my map view based on toggling a div, the popup popup position is not updated.

For instance in the above snapshot, whenever I show the panel on the left, I set the left padding of my map view to 400px. But when I click on the "light blue" graphic shown on the map the popup opens up about 200px to left of the popup. The popup is acting as if it didn't get the message that the left padding on the map view has changed. How do I fix this?
-lak krishnan