only resize widget if width and height really changed
Merge branch 'protected_resize' into development