fixing regrouping of widgets after resize

Signed-off-by: nuss <st9fan@gmail.com>