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

Positioning #7

Open
xavisavvy opened this issue May 16, 2013 · 3 comments
Open

Positioning #7

xavisavvy opened this issue May 16, 2013 · 3 comments

Comments

@xavisavvy
Copy link

Just curious if there is a way to change the positioning of the element from relative to the dropdown to say a centered on the window? I am having trouble with it going off the screen on mobile devices and was hoping to mod it or find an option to position it relative to the window.

@shawnchin
Copy link
Owner

I don't recall there being an official way to do that, however I believe the css values that control that are set on .data("dialog") so I suppose you could target that element and change the position from outside the plugin.

If you're changing the position of the dialog, you'll also want to set hideOnMouseOut = false or the dialog will hide itself if the position of the mouse does not overlap with it.

Apologies that I cannot take a more active role in helping you get this working. Other responsibilities are currently keeping my away from working on this project.

@xavisavvy
Copy link
Author

No worries, I ended up doing similar to what you mentioned. It would be a great addition to your stuff if you add it in the future :) Really for me on smaller screens I just have it centering on the document that way there is no chance of it running off the screen with larger fields like seconds. Thank you for the reply!

@shawnchin
Copy link
Owner

Yes, that's certainly something worth looking at. I'll keep this issue open as a reminder :)
Many thanks for posting this.

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

No branches or pull requests

2 participants