Skip to content

Question: SPControlLookupField width? #45

@seanmarthur

Description

@seanmarthur

Hi,

I have a user request to increase the width of the lookup field to prevent options from wrapping in the selection dropdown. I looked through the documentation for some kind of option or setting to handle this but couldn't find anything. Ideally I would like the width to be dynamically set such that none of the results of the lookup target list wrap.

Crude example:
lookup wrapping

I've figured out that I can just hard-set a css width on the top-level div with the class 'spwidgets-lookup-cntr' to change the width of the control, but I'd rather not have to keep adjusting it if wider and wider content gets added to the lookup list.

Do you have any suggestions on achieving this?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions