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

Proposed: Adding z-index as an option #141

Open
mkasson opened this issue Jul 7, 2016 · 0 comments
Open

Proposed: Adding z-index as an option #141

mkasson opened this issue Jul 7, 2016 · 0 comments

Comments

@mkasson
Copy link

mkasson commented Jul 7, 2016

I'm working on a project which uses a modal over the html page. The modal gives itself z-index of 1050. Since I need to be able to show opentips over the modal I need to use a higher z-index for those.

I have edited/hacked the opentip .js to start lastZIndex at 1050 (rather than 100). I propose:

Adding an option to specify the z-index of an opentip when it is created. e.g. { style:"alert", zIndex: 1051 }

I don't know coffeescript, so I'm not sure how to do this, however it seems it's just a matter of changing line 504 to something like
if @options.zIndex @adapter.css @container, zIndex: @options.zIndex else @adapter.css @container, zIndex: Opentip.lastZIndex++
Any help would be greatly appreciated.

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

1 participant