don't assume widget has a parent when setting the height or width