Title: Unable to swap 2 items when float is true · Issue #1990 · gridstack/gridstack.js · GitHub
Open Graph Title: Unable to swap 2 items when float is true · Issue #1990 · gridstack/gridstack.js
X Title: Unable to swap 2 items when float is true · Issue #1990 · gridstack/gridstack.js
Description: Subject of the issue I have a grid that allows floating. I would like to move the top item below the one directly below it. When I drag it downward, the item below it moves down also. Instead, it should swap positions so that the one on ...
Open Graph Description: Subject of the issue I have a grid that allows floating. I would like to move the top item below the one directly below it. When I drag it downward, the item below it moves down also. Instead, it s...
X Description: Subject of the issue I have a grid that allows floating. I would like to move the top item below the one directly below it. When I drag it downward, the item below it moves down also. Instead, it s...
Opengraph URL: https://github.com/gridstack/gridstack.js/issues/1990
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unable to swap 2 items when float is true","articleBody":"## Subject of the issue\r\nI have a grid that allows floating. I would like to move the top item below the one directly below it. When I drag it downward, the item below it moves down also. Instead, it should swap positions so that the one on the bottom becomes the one on top. If I leave float set to false then it tries to fill in all the spaces when one of the items is 2 rows tall rather than leaving those spaces empty. \r\n\r\n## Your environment\r\nGridstack 3.1.0\r\nGoogle Chrome Latest\r\n\r\n## Steps to reproduce\r\nGo to this URL:\r\nhttps://jsfiddle.net/qk5zuwyd/\r\nTry dragging 0 down below 1. Notice that 1 runs away to the south instead of swapping with 0.\r\n\r\nSignificant changes to template: set float to true.\r\n\r\n## Expected behavior\r\n0 and 1 should swap places. Regardless of the x, y position if the two being swapped are the same size they should just swap places.\r\n\r\n## Actual behavior\r\n1 runs away from 0 when dragging 0 down.\r\n","author":{"url":"https://github.com/harrington101","@type":"Person","name":"harrington101"},"datePublished":"2022-06-28T21:12:21Z","url":"https://github.com/gridstack/gridstack.js/issues/1990"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:765cc342-1578-9df1-b805-c839cdca2f9e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B480:2A4404:16AC662:1E35858:6AFEBBDD |
| html-safe-nonce | 76fdc6e8c95eecbd9e51082455592bd66dd387da197b26c7beec26fb556bdfa4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDgwOjJBNDQwNDoxNkFDNjYyOjFFMzU4NTg6NkFGRUJCREQiLCJ2aXNpdG9yX2lkIjoiODI3MjgxMTA4Nzg3OTkxMjQxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6692f09d57115d450eefe33a9e2988cd4cdc2d2e1515c569d7dbd555151d6e3c |
| hovercard-subject-tag | issue:1287888950 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gridstack/gridstack.js/1990/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a9b4bc40beac47bb27582ea3e22c18c7bdf5373c41f26290fb5be7caff0eacf0/gridstack/gridstack.js/issues/1990 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a9b4bc40beac47bb27582ea3e22c18c7bdf5373c41f26290fb5be7caff0eacf0/gridstack/gridstack.js/issues/1990 |
| og:image:alt | Subject of the issue I have a grid that allows floating. I would like to move the top item below the one directly below it. When I drag it downward, the item below it moves down also. Instead, it s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | harrington101 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e |
| turbo-cache-control | no-preview |
| go-import | github.com/gridstack/gridstack.js git https://github.com/gridstack/gridstack.js.git |
| octolytics-dimension-user_id | 31674162 |
| octolytics-dimension-user_login | gridstack |
| octolytics-dimension-repository_id | 26417283 |
| octolytics-dimension-repository_nwo | gridstack/gridstack.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26417283 |
| octolytics-dimension-repository_network_root_nwo | gridstack/gridstack.js |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e1ce4c46d35aa8463a597a1bbffd4f0a456edb38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width