ruler resize when the layer resized