Fix some problems resizing and moving widgets