only resize widget if width and height really changed

fixes #143 for me