calculate widget size properly