Updates coords of container after repaint