fixed systray icon minium height may be 0

Closes #255
_Widget.resize is deprecated

Closes #254