Previously, we didn't set the width of the child correctly when top and bottom (or left and right) were both specified. Fixes #275