Code Monkey home page Code Monkey logo

Comments (3)

hw-df avatar hw-df commented on May 28, 2024

Hi, I tested this with the latest demo by adding more menu items. The behaviour is the same with the latest version.

Since you described a small map area in your application my feeling is that you need to tidy up your entries. In my opinion adding scrollbars makes it more difficult to use. As you said maybe the use of submenus make sense.

from ol-contextmenu.

Saurbaum avatar Saurbaum commented on May 28, 2024

Thanks for checking. The issue is it's a map embedded in a desktop application and as people can resize the viewing area they inevitably make it too small for the context menu which appears in the html view.

The reason I jumped to a scroll bar it it's the typical desktop OS response to a context menu that doesn't fit. In my case it may be simpler to extract the context menu content and pass it up to the host application to display instead if I can't convince design people to let me group the entries.

from ol-contextmenu.

Saurbaum avatar Saurbaum commented on May 28, 2024

image

Just an example I found on my NAS to show it's not always a terrible thing to add scrolling

from ol-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.