Coder Social home page Coder Social logo

Comments (3)

rodneyrehm avatar rodneyrehm commented on June 4, 2024

I would actually do the z-index adjustment once.
line 705 or something:

opt.$menu.find('ul').css('z-index', css.zIndex + 1);

can you try that? If it solves your problem, I'll update the code base :)

from jquery-contextmenu.

a2daj avatar a2daj commented on June 4, 2024

I gave that a try and that worked great!

from jquery-contextmenu.

a2daj avatar a2daj commented on June 4, 2024

Hi,
The problem was that the zindex for the submenus wasn't getting adjusted to float above the parent menu even with the zIndex option was configured. Based on your reply in the issue it sounds like figured that out based. I verified your fix in my work project and the demo page.

Thanks!

On Jan 5, 2012, at 12:56 PM, Rodney Rehm wrote:

well… you know that you can specify a z-index offset when creating the menu, right?

what your positionSubmenu addition does, is actually handled by contextMenu in lines 700 and 707.

is your zindex() the zindex() function I defined in line 161? If so, that function already returns a number, no need to parse it again.

… or did I miss something?!


Reply to this email directly or view it on GitHub:
#22 (comment)

from jquery-contextmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.