markers: fix to use onSizeChanged