Title: Max-width does not work as intended with resizable handle "w" · Issue #1330 · gridstack/gridstack.js · GitHub
Open Graph Title: Max-width does not work as intended with resizable handle "w" · Issue #1330 · gridstack/gridstack.js
X Title: Max-width does not work as intended with resizable handle "w" · Issue #1330 · gridstack/gridstack.js
Description: Subject of the issue When using option resizable.handles 'sw', 'w' or 'nw' in combination with max-width, the widget can be dragged on x-axis instead of resizing, after we tried to make it further than the max-width property. Your enviro...
Open Graph Description: Subject of the issue When using option resizable.handles 'sw', 'w' or 'nw' in combination with max-width, the widget can be dragged on x-axis instead of resizing, after we tried to make it further ...
X Description: Subject of the issue When using option resizable.handles 'sw', 'w' or 'nw' in combination with max-width, the widget can be dragged on x-axis instead of resizing, after we t...
Opengraph URL: https://github.com/gridstack/gridstack.js/issues/1330
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Max-width does not work as intended with resizable handle \"w\"","articleBody":"## Subject of the issue\r\nWhen using option resizable.handles 'sw', 'w' or 'nw' in combination with max-width, the widget can be dragged on x-axis instead of resizing, after we tried to make it further than the max-width property. \r\n\r\n## Your environment\r\n* Gridstack Version 1.2.0\r\n* Chrome Browser Version 85.0.4183.59\r\n\r\n## Steps to reproduce\r\n- Add the following option to you GridStack.init method:\r\n```js\r\nresizable: {\r\n handles: 'sw'\r\n}\r\n```\r\n- Then add a max-width property to the widget you want to test\r\n- Now, when trying to resize the widget to the left, making it bigger than the max-width, it will move (with placeholder below) until the grid ends, and then only the draggable floats free outside the grid, movable on the x-axis\r\n\r\n### JSFiddle\r\nWhen using this fiddle, just resize to the left.\r\n**The Widget with the number 2 is an example without maxwidth, so it work as intended ;)** \r\nhttps://jsfiddle.net/c5z2ywtn/4/\r\n\r\n## Expected behaviour\r\nIt should stop resizing at max width, like when using the default handle on the bottom right corner. And not even move, when trying to make bigger as max-width\r\n\r\n## Actual behaviour\r\nit will move (with placeholder below) instead of resize (when being larger than the max-width), until the grid ends, and then only the draggable floats freely outside the grid, movable on the x-axis","author":{"url":"https://github.com/JanStorm","@type":"Person","name":"JanStorm"},"datePublished":"2020-08-13T09:12:16Z","url":"https://github.com/gridstack/gridstack.js/issues/1330"}
| 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:175c83f7-b45d-4db1-e836-47877c7653fe |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E28:3CA38C:4E3067:4BEFA7:6AFF574F |
| html-safe-nonce | c841051aa8d550ab12ec0fa27e97ddb3469c3ecda09a04c0e45befde75817234 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTI4OjNDQTM4Qzo0RTMwNjc6NEJFRkE3OjZBRkY1NzRGIiwidmlzaXRvcl9pZCI6IjQ1MjM3NjMwMTQ1NjE2NTA1MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dca72199b50218a122214847e6f216d046ab49fbc4800f3018993f090e123fb6 |
| hovercard-subject-tag | issue:678282873 |
| 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/1330/issue_layout |
| twitter:image | https://opengraph.githubassets.com/974fad702d58f0236db4c551cc294d4b94e4510fa2343c5bfd26c23322cc44a6/gridstack/gridstack.js/issues/1330 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/974fad702d58f0236db4c551cc294d4b94e4510fa2343c5bfd26c23322cc44a6/gridstack/gridstack.js/issues/1330 |
| og:image:alt | Subject of the issue When using option resizable.handles 'sw', 'w' or 'nw' in combination with max-width, the widget can be dragged on x-axis instead of resizing, after we tried to make it further ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JanStorm |
| hostname | github.com |
| expected-hostname | github.com |
| None | ed37e7b483eada3dbc4dfe6f3b2f052078a0ba79fd3f4bef316d90c1a1d7f9db |
| 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 | 69e9a58ca64ef0c616ba11e26098fafdb4214b4d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width