I am using Office UI Fabric React that comes with SPFx. It's version 6.214.0. I have a dropdown that looks like this:
<Dropdown placeholder={strings.Position} label="" options={positionOptions} onChange={(e, option) => setPosition(option.text)} styles = {dropdownStyles} className={styles.dropDown}/>
The styles.dropDown has the following styles:
.dropDown{
float: left;
margin-right: 15px;
}
The values are filled dynamically based on a web service. However the dropdown width doesn't fit the items inside.
If I remove the float left, all of them will take 100% of the width.
How do we achieve this with UI Fabric React?