Dropdown, Datepicker and other components that pop out a window should use the same framework as callout
Imagine the following scenario:
<div style="overflow: hidden">
<DatePicker firstDayOfWeek={ firstDayOfWeek } strings={ DayPickerStrings } placeholder='Select a date...' />
</div>
What currently happens is the date picker is cut off at the bottom.
Now take the following code:
<div style="overflow: hidden">
<Callout
className='ms-CalloutExample-callout'
gapSpace={ 20 }
targetElement={ this._menuButtonElement }
onDismiss={ this._onCalloutDismiss }
setInitialFocus={ true }
>
<div className='ms-Callout-header'>
<p className='ms-Callout-title'>
All of your favorite people
</p>
</div>
<div className='ms-Callout-inner'>
<div className='ms-Callout-content'>
<p className='ms-Callout-subText'>
Message body is optional. If help documentation is available, consider adding a link to learn more at the bottom.
</p>
</div>
<div className='ms-Callout-actions'>
<Link className='ms-Callout-link' href='http://microsoft.com'>Go to microsoft</Link>
</div>
</div>
</Callout>
</div>
The callout isn't cut off like the date picker.
I would prefer any control that pops out like this (callout, datepicker, dropdown, etc) to work similarly to callout.
Yup agree 100%. @joschect is going to take on the Dropdown update, hopefully this weekend. There is another open issue on Dropdown which he's taking care of, we can keep this open for the DatePicker.
@joschect what's the status on this?
@rickyp-ms hey! @micahgodbolt ended up fixing this. It's in master, you can see the pr here https://github.com/OfficeDev/office-ui-fabric-react/commit/61b5f585273152c442a0b069649195d6cc1d6bac
I believe this is all done.