Resize scales when the grahpic is updates