Giter Site home page Giter Site logo

Comments (2)

goldenapples avatar goldenapples commented on September 25, 2024

Yeah, I see the issue you're having.

This plugin depends on both the minimap and the column that it clones having a containing element with a fixed height and overflow scrolling set. In the demo, that works because the body is set to 100% of the height of the viewport, and the default overflow: scroll value allows the body content to scroll within that box.

It will be harder to make this work in a setup like your page, where the element you want the minimap attached to is far down the page, and flows with other content. You could do it by wrapping the <div class="mybema-insights-feature-description..."> in a containing div that was set to the height of the viewport. I'm not sure how well that would actually work across browsers, though. "position: sticky" would make it easy on iOS/Safari, but I think you would need to polyfill that behavior with Javascript for other browsers.

I haven't figured a good way of addressing these kinds of cases in the plugin. If you have any ideas, let me know.

from jquery.minimap.

pawel2105 avatar pawel2105 commented on September 25, 2024

Not sure I follow. To simplify everything (same link above is now applicable), I've moved the body_column class so that the structure is now:

<body>
  <div id='container'>
    <div class='body_column'>

The #container element has min-height: 100% and is the wrapper to the body_column div which is being targeted. This still doesn't work.

Are you able to view the minimap on this page by manipulating properties in developer tools?

from jquery.minimap.

Related Issues (6)

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.