Fixes autosize problem for widget and page