Steps to reproduce:
- Load https://www.wikidata.org/wiki/Q4115189
- Click on  and scroll down. The buttons get fixed positioned while the buttons are over the box.
- Click on [cancel]. Box get removed. The buttons change back to . The buttons are still fixed positioned and are now not over the box anymore:
Expected result: After changing the box the position status should be updated.