model:wantsViewHeightForWidth: method

Called to ask the adapter the height needed for its view for a given width for layout calculations.

Syntax

- ( NSUInteger ) model : ( id< SMPOpenUIFieldModel > ) model wantsViewHeightForWidth : ( NSUInteger ) width

Parameters

Remarks

This method will only be called if the height of the field is set to Auto in the Editor and the adapter has reported that its desired autosizeBehavior is SMPOpenUIAutosizeBehaviorWrapContent.

If the adapter reports its desired autosize behavior is SMPOpenUIAutosizeBehaviorNone, or if this method is not implemented, standard Agentry layout rules will be used to determine the height of the field.