How to change rect-selection size when container scroll
See original GitHub issueEnvironments
- Framework name: react
- Framework version: v16
- Component name: react-selecto
- Component version: 1.12.0
- Testable Address(optional): https://codesandbox.io/s/broken-fog-bbl8w (fork from https://codesandbox.io/s/4lw4q, only change file style.css line 122(
height: 300px;
=>// height: 300px;
))
Description
Is there a way to autoChange rect-selection size when container is dragging and outer container(e.g window) is scolling? Currently,when outer container scrolls, the rect-selection only change pos(size not change)。
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (3 by maintainers)
Top Results From Across the Web
Change the width of container when scrolling the screen
here is a simple way to change the container or your content div block's width when the user scrolls to the end of...
Read more >Element size and scrolling
First, CSS width/height depend on another property: box-sizing that defines “what is” CSS width and height. A change in box-sizing for CSS ...
Read more >Overflowing content - Learn web development | MDN
As with scroll , you get a scrollbar in the scrolling dimension whether or not there is enough content to cause a scrollbar....
Read more >CSS overflow property
JavaScript syntax: object.style.overflow="scroll" Try it ... Content can be scrolled programmatically (e.g. by setting scrollLeft or scrollTo()), Demo ❯.
Read more >Make scrollable container
If you want to change the size of the container, just edit the Container Properties or click on its name on the canvas...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ttay24 @na2793 @yoole5699
selecto
1.15.0react-selecto
1.15.0preact-selecto
1.15.0ngx-selecto
1.15.0svelte-selecto
1.15.0vue-selecto
1.15.0vue3-selecto
1.1.0lit-selecto
1.15.0selecto
’s new version is released and see this demo: https://codesandbox.io/s/angry-albattani-2uu9kg?file=/src/App.tsxAnd storybook also updated.
https://daybrush.com/selecto/storybook/?path=/story/selecto--select-in-the-scroll-area
Thank you 😃
@claudiabdm I had the same problem before. Check out the link below. https://daybrush.com/selecto/release/latest/doc/Selecto.html#findSelectableTargets I hope this helps.