Skip to content

Proposed: Adding z-index as an option #141

@mkasson

Description

@mkasson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions