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

Add dynamicPosition prop to Position component #42

Merged

Conversation

thetimbanks
Copy link
Contributor

This adds the dynamicPosition prop to the Position component in order to allow for the popover to be repositioned when content changes. It is turned off by default so it should not affect any existing code.

This goes with this issue on react-bootstrap: react-bootstrap/react-bootstrap#1438

@thetimbanks
Copy link
Contributor Author

Not sure why the tests are failing on TravisCI. When I run the karma tests locally everything passes.

@taion taion mentioned this pull request Nov 29, 2015
@taion
Copy link
Member

taion commented Nov 29, 2015

That was a Travis misconfig on our part. This looks good, except the name for the prop is a bit clunky. Not a blocker but does anybody have any better ideas?

@thetimbanks
Copy link
Contributor Author

Good to know I didn't break anything!

I had some trouble naming the prop. Another idea I had was autoPosition.
Not much better but something different.

On Sunday, November 29, 2015, Jimmy Jia notifications@github.com wrote:

That was a Travis misconfig on our part. This looks good, except the name
for the prop is a bit clunky. Not a blocker but does anybody have any
better ideas?


Reply to this email directly or view it on GitHub
#42 (comment)
.

@paul-sachs
Copy link

I'd like to see this change merged so maybe a name like forceRepositionOnRender would be more accurate? It's a little verbose but better verbose than cryptic.

@thetimbanks
Copy link
Contributor Author

Any other ideas on the name change for this property?

@taion
Copy link
Member

taion commented Dec 11, 2015

Could just call it shouldUpdate.

@taion
Copy link
Member

taion commented Dec 11, 2015

Well, then we'd have to manually rename it to shouldUpdatePosition on other components. Maybe shouldUpdatePosition then? It's consistent w/e.g. the naming on <StaticContainer>.

@thetimbanks
Copy link
Contributor Author

Prop has been renamed to shouldUpdatePosition and commits squashed.

@taion
Copy link
Member

taion commented Dec 17, 2015

LGTM. @jquense?

@jquense
Copy link
Member

jquense commented Dec 18, 2015

LGTM

jquense added a commit that referenced this pull request Dec 18, 2015
Add dynamicPosition prop to Position component
@jquense jquense merged commit 148d456 into react-bootstrap:master Dec 18, 2015
@hellpf
Copy link

hellpf commented Jan 15, 2016

When it will be released?

@jquense
Copy link
Member

jquense commented Jan 15, 2016

released

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.

None yet

5 participants