[composer] Respect reference point when resizing scalebar and legend

Previously, the reference point (and data defined position/size) were
ignored when scalebars or legends resized themselves.

Fix #11321, #11380