fix crash in modal_frame

Modal_frame was setting incorrect allocation for child widget in the
case when allocation is smaller than child requested.