fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Dropdown, Datepicker and other components that pop out a window should use the same framework as callout

Open rickyp-ms opened this issue 10 years ago • 4 comments

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.

rickyp-ms avatar Sep 29 '16 02:09 rickyp-ms

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.

dzearing avatar Sep 29 '16 17:09 dzearing

@joschect what's the status on this?

rickyp-ms avatar Oct 26 '16 18:10 rickyp-ms

@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

joschect avatar Oct 26 '16 18:10 joschect

I believe this is all done.

dzearing avatar Nov 22 '16 23:11 dzearing