fixed issue #39 and change boxwidget resize box