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

Setting custom z-index #69

Closed
kaelle opened this issue Sep 30, 2015 · 2 comments
Closed

Setting custom z-index #69

kaelle opened this issue Sep 30, 2015 · 2 comments

Comments

@kaelle
Copy link

kaelle commented Sep 30, 2015

The .js file suggests using custom CSS to set the z-index. I tried setting the z-index in several different places through my app to no avail.

Each time an inline style was placed that clobbered any custom CSS I added.

In order to deal with this I added a variable to the scope at line 23:

return {
    restrict: "EAC",
    transclude: false,
    scope: {
        psOpen: "=?",
        psAutoClose: "=?",
        psSide: "@",
        psSpeed: "@",
        psClass: "@",
        psSize: "@",
        psSqueeze: "@",
        psCloak: "@",
        psPush: "@",
        psContainer: "@",
        psZindex: "@" // <--- my new scope variable
    },

Then at line 38:

    param.zindex = $scope.psZindex || 1000; // Override with custom CSS

Am I doing it wrong or would this be a useful update?

@danielepiccone
Copy link
Owner

Yes, it could be useful

@danielepiccone
Copy link
Owner

#100

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

No branches or pull requests

2 participants