only resize widget if width and height really changed
Merge pull request #144 from RudolfVonKrugstein/protected_resize

only resize widget if width and height really changed