Code Monkey home page Code Monkey logo

Comments (7)

joeldbirch avatar joeldbirch commented on August 29, 2024

I can't check this right now, but it should work. At the top of superfish-vertical.css, simply replace the width rule with min-width. Or, you could just keep using supersubs.js v0.3b if you prefer. Hope this helps.

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

Note that the min-width solution may not work if you didn't originally create your menu from v1.6.x+ CSS.

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

I tested this and found it needed a smidgen more CSS for it to work. Here is a Gist of the final superfish-vertical.css file you will need to achieve the effect.

from superfish.

waynebrantley avatar waynebrantley commented on August 29, 2024

This worked GREAT. Suggest you update source to be like that!

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

Excellent. But with regard to adding this as the default, I imagine the much more common scenario to be that a vertical menu needs to fit nicely within a sidebar rather than determine its own width. Do you disagree?

from superfish.

waynebrantley avatar waynebrantley commented on August 29, 2024

Humm....perhaps you are correct. I let mine determine its own width - so the sidebar can vary in size a bit. (normally a small amount). Perhaps then - adding an additional class that can be used to get this behavior - I would think others might want/need, but you know best!

from superfish.

joeldbirch avatar joeldbirch commented on August 29, 2024

Thanks, I just released v1.7 and added a bit of code to superfish-vertical.css that, when uncommented, will provide this functionality. Cheers.

from superfish.

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.