Skip to content

Added considerParentHeight option #893

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

gr8den
Copy link

@gr8den gr8den commented Dec 17, 2018

No description provided.

@ezracelli
Copy link
Contributor

Yes, definitely need this! Would be very useful for modals or other embedded components

@shentao
Copy link
Owner

shentao commented Feb 1, 2019

Although I like the idea, I’m afraid that this might easily break since you might end up with several other elements (parents) around the component which wasn’t intended to affect the height of the component itself. Think: multiselect inside a form element or label that is put into a modal.

What about passing a reference to the DOM node that you want explicitly to be taken into consideration when calculating the height? Then you could pass whatever wrapper you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants