Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(datepicker): allow for the dropdown position to be customized #16698

Merged
merged 1 commit into from
Apr 24, 2020

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Aug 6, 2019

Allows the consumer to customize the primary position of the datepicker in dropdown mode.

Fixes #16550.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release labels Aug 6, 2019
@crisbeto crisbeto requested a review from mmalerba as a code owner August 6, 2019 13:24
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 6, 2019
@crisbeto crisbeto force-pushed the 16550/datepicker-popup-position branch 2 times, most recently from 605993f to 659fb5a Compare August 6, 2019 14:05
const primaryY = this.yPosition === 'above' ? 'bottom' : 'top';
const secondaryY = primaryY === 'top' ? 'bottom' : 'top';

return strategy.withPositions([
Copy link

@SERGEES SERGEES Aug 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@crisbeto maybe you could allow to pass ConnectedPosition so any consumer had full controll if needed.
As sometimes its realy needed to add offsets or class to overlay
And lines 509-512 would go away

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing that feels like we'd give people the ability to shoot themselves in the foot since they could pass in a configuration that makes the datepicker harder to use.

@crisbeto crisbeto force-pushed the 16550/datepicker-popup-position branch from 659fb5a to e8c8187 Compare September 11, 2019 20:15
@crisbeto crisbeto force-pushed the 16550/datepicker-popup-position branch 2 times, most recently from 77a3387 to 74a66bd Compare November 17, 2019 17:29
@crisbeto crisbeto force-pushed the 16550/datepicker-popup-position branch from 74a66bd to 64992fd Compare January 4, 2020 15:25
@crisbeto crisbeto force-pushed the 16550/datepicker-popup-position branch from 64992fd to ccffcbb Compare January 26, 2020 15:40
@crisbeto
Copy link
Member Author

@mmalerba I totally forgot about this PR. I've addressed your feedback from a few months ago. Can you take another look?

@mmalerba mmalerba added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jan 27, 2020
Allows the consumer to customize the primary position of the datepicker in dropdown mode.

Fixes angular#16550.
@crisbeto crisbeto force-pushed the 16550/datepicker-popup-position branch from ccffcbb to 7ae7919 Compare March 30, 2020 19:51
@jelbourn jelbourn merged commit 9104a0b into angular:master Apr 24, 2020
soro-google pushed a commit to soro-google/components that referenced this pull request Apr 24, 2020
…ngular#16698)

Allows the consumer to customize the primary position of the datepicker in dropdown mode.

Fixes angular#16550.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

proposal : datepicker add popup position in horizontal big input (Input 100%)
5 participants