Does the height of the dialog extend past `.modal-inner-wrapper`?  With a name like "inner" I'd expect there might be some additional padding outside those bounds, so clamping the inner part to maxHeight might still allow the overall outer dialog to slightly exceed it.