Git Product home page Git Product logo

codastic / react-positioning-portal Goto Github PK

View Code? Open in Web Editor NEW
24.0 5.0 4.0 4.58 MB

The positioning portal is a low level React component to build all kinds of absolutely positioned flyouts which are anchored to another element in the viewport.

Home Page: https://codastic.github.io/react-positioning-portal/

License: MIT License

TypeScript 45.45% JavaScript 54.55%
react-portal flyout positioning typescript javascript ui ui-component

react-positioning-portal's Issues

Doesn't seem to do anything

Hey Codastic team!

I came across this package and gave it a try, but it doesn't seem to have any affect on the DOM. It doesn't seem to be creating a portal, or using one I pass in if I use the rootNode prop.

I tried making my portalContent a function and logging relatedWidth each time it executes, but it apparently never executes. Any ideas? Thanks for sharing!

Portal not visible if that part of the parent div is not visible.

Thank you for this component. I have a problem/feature request:

Problem:

If the calculated position for the portal is in an area of the parent div that is not visible, the portal is not visible.

Duplication:

  1. Run the scrollable test: https://codastic.github.io/react-positioning-portal/?path=/story/example-tooltip--scrollable-test
  2. Move your window to the right so that the right edge, up to the button is not visible:
image
  1. Hover over the button
  2. Observe that the portal can not be seen

Desired Solution:

Consider what's visible in the positioning strategy and, in this case, put the portal on the left of the button instead, and in general find a way to make it visible.

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.