Added reaction to size changes.