Popup: Factor our width constraint code for reuse.