Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't easily drag widgets below widgets on the bottom border of a grid #219

Closed
derekm opened this issue Aug 25, 2015 · 11 comments · Fixed by #1710
Closed

Can't easily drag widgets below widgets on the bottom border of a grid #219

derekm opened this issue Aug 25, 2015 · 11 comments · Fixed by #1710
Labels

Comments

@derekm
Copy link

derekm commented Aug 25, 2015

Gridster pops a few blank rows at the bottom of a grid, making it easy for your drag to scroll the window downward. When a gridstack grid has filled the window, it is impossible to drag a widget below any widget that touches the bottom border. Turning on float causes drags to add extra rows as needed. With float off, it could do the same then let the block fall upward into position.

@svdb
Copy link

svdb commented Sep 28, 2015

Just wrap your gridstack DIV inside a parent DIV, then give the parent DIV a padding-bottom >= the stackgrid row height.
So when you move a widget down you always have extra space and stackgrid will add a new row.

@radiolips
Copy link
Member

@derekm did adding padding work? It should. I'm closing this issue, but please feel free to reopen it if you still have a problem.

@frankadrian
Copy link

Hey @radiolips, This does not seem to work for items that are being dragged from another grid. I will try create a example for this!

@frankadrian
Copy link

frankadrian commented Mar 30, 2017

The behaviour can be seen here: https://gridstackjs.com/demo/two.html

Try dragging an item from one grid below an item in the other grid!

@trongletps
Copy link

trongletps commented May 8, 2017

I had same issue with @frankadrian. When I set float equal false, to difficultly to drag the widget below one from the grid to the another grid.

@radiolips radiolips reopened this May 8, 2017
@trongletps
Copy link

Everything work well except this case but it's very important with user experience, so uncomfortable when drag and drop item from sidebar to main grid (drag item from sidebar below the other items in main grid).

@stevenliebregt
Copy link

What is the status off this issue?

@adumesny
Copy link
Member

see #1094 as well

@adumesny adumesny removed this from the v1.0.0 milestone Nov 14, 2020
@adumesny
Copy link
Member

this might get fixed along #1001 as we will add an extra temporary row the moved/resized item is at the bottom.

@adumesny
Copy link
Member

adumesny commented Jan 3, 2021

it is now possible in v3 HTML5 drag version (we get auto-scroll) but a little rough so keeping it open to address side effects shown below:

20210103_092419.mp4

adumesny added a commit to adumesny/gridstack.js that referenced this issue Apr 4, 2021
fix gridstack#219
**fixing another 6 years old request**
* we now automatically insert extra rows
when dragging an item at the bottom below others to make it easier to insert below.
* added _extraDragRow to grids driven by dragged item
@adumesny
Copy link
Member

adumesny commented Apr 4, 2021

should work a lot better now in next release.

we now automatically insert extra rows when dragging an item at the bottom below others to make it easier to insert below, while allowing objects to be easily removed (not colliding with others)

20210404_081138.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants