Title: cellHeight(val) does not work properly on v0.5.3 (but OK on v0.5.2) · Issue #1068 · gridstack/gridstack.js · GitHub
Open Graph Title: cellHeight(val) does not work properly on v0.5.3 (but OK on v0.5.2) · Issue #1068 · gridstack/gridstack.js
X Title: cellHeight(val) does not work properly on v0.5.3 (but OK on v0.5.2) · Issue #1068 · gridstack/gridstack.js
Description: Subject of the issue Seems like function cellHeight(val) doesn't work properly on v0.5.3. E.g., not able to auto resize height while resizing (Browser) Window, and (re)assign height by calling this function (although the one in construct...
Open Graph Description: Subject of the issue Seems like function cellHeight(val) doesn't work properly on v0.5.3. E.g., not able to auto resize height while resizing (Browser) Window, and (re)assign height by calling this...
X Description: Subject of the issue Seems like function cellHeight(val) doesn't work properly on v0.5.3. E.g., not able to auto resize height while resizing (Browser) Window, and (re)assign height by calling ...
Opengraph URL: https://github.com/gridstack/gridstack.js/issues/1068
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cellHeight(val) does not work properly on v0.5.3 (but OK on v0.5.2)","articleBody":"## Subject of the issue\r\nSeems like function [`cellHeight(val)`](https://github.com/gridstack/gridstack.js/tree/v0.5.3/doc#cellheightval-noupdate) doesn't work properly on `v0.5.3`.\r\n\r\nE.g.,\r\n1. not able to auto resize height while resizing (Browser) Window, and\r\n2. (re)assign height by calling this function (although the one in constructor `$('.grid-stack').gridstack` can set up height correctly)\r\n\r\nHowever, it works fine after I downgrade to `v0.5.2`.\r\nThere should be something wrong for this version, but not sure if anyone has already find out the issue and prepare to fix it\r\n\r\n## Environment\r\n* Failed on `v0.5.3`\r\n* Success on `v0.5.2`\r\n\r\n## Steps to reproduce\r\nI think it's easy to reproduce(?\r\nSorry for not familiar with jsfiddle. QQ\r\n\r\n## Simple example\r\n1. Save following code as local `.html` file and open it with browser\r\n2. Uncomment `#L17` to see the difference\r\n3. `#L21` also shows the `cellHeight(val)` after init (constructor)\r\n```html\r\n\u003chtml>\u003chead>\u003clink href=\"https://cdn.jsdelivr.net/npm/gridstack@v0.5.2/dist/gridstack.min.css\" rel=\"stylesheet\">\u003c/head>\u003cbody>\r\n\r\n\u003cdiv class=\"grid-stack\">\r\n \u003cdiv class=\"grid-stack-item\" data-gs-x=\"0\" data-gs-y=\"0\" data-gs-width=\"2\" data-gs-height=\"2\" style=\"background-color:red\">\r\n \u003cdiv class=\"grid-stack-item-content\">11111\u003c/div>\u003c/div>\r\n \u003cdiv class=\"grid-stack-item alert-success\" data-gs-x=\"2\" data-gs-y=\"0\" data-gs-width=\"2\" data-gs-height=\"2\" style=\"background-color:green\">\r\n \u003cdiv class=\"grid-stack-item-content _align_center\">22222\u003c/div>\u003c/div>\r\n \u003cdiv class=\"grid-stack-item\" data-gs-x=\"4\" data-gs-y=\"0\" data-gs-width=\"2\" data-gs-height=\"2\" style=\"background-color:blue\">\r\n \u003cdiv class=\"grid-stack-item-content\">33333\u003c/div>\u003c/div>\r\n\u003c/div>\r\n\r\n\u003cscript src=\"https://code.jquery.com/jquery-3.4.1.min.js\">\u003c/script>\r\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js\">\u003c/script>\r\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/gridstack@v0.5.2/dist/gridstack.all.js\">\u003c/script>\r\n\r\n\u003c!-- uncomment next line to compare function `cellHeight(val)` between v0.5.2 and v0.5.3 -->\r\n\u003c!-- \u003cscript src=\"https://cdn.jsdelivr.net/npm/gridstack@v0.5.3/dist/gridstack.all.js\">\u003c/script> -->\r\n\r\n\u003cscript>$(function(){\r\n $('.grid-stack').gridstack({disableOneColumnMode:true,verticalMargin:0,cellHeight:'auto'});\r\n $('.grid-stack').data('gridstack').cellHeight(20); // change height after initialization\r\n});\u003c/script>\r\n\r\n\u003c/body>\u003c/html>\r\n```","author":{"url":"https://github.com/LouisSung","@type":"Person","name":"LouisSung"},"datePublished":"2019-11-24T23:56:20Z","url":"https://github.com/gridstack/gridstack.js/issues/1068"}
| 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:e4d24d43-fd01-7891-2303-274542a89248 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E40:19C769:4AA8CD:482DD6:6AFF5753 |
| html-safe-nonce | e6309a618b5f435b9ff3dcb877fef51b70f8d94789a8681d36a7405485e2ef51 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTQwOjE5Qzc2OTo0QUE4Q0Q6NDgyREQ2OjZBRkY1NzUzIiwidmlzaXRvcl9pZCI6Ijk1OTYxMDgxNzAwMTEyMjExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 86bdc2d1a113a975d2ff1f9ef6fa53179204305eab2f38b6fd13bb5a2da5da00 |
| hovercard-subject-tag | issue:527779833 |
| 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/1068/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7cc3b34f161633f082e1413dedbfd0a1930d9537edd1b57c673982786611d47b/gridstack/gridstack.js/issues/1068 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7cc3b34f161633f082e1413dedbfd0a1930d9537edd1b57c673982786611d47b/gridstack/gridstack.js/issues/1068 |
| og:image:alt | Subject of the issue Seems like function cellHeight(val) doesn't work properly on v0.5.3. E.g., not able to auto resize height while resizing (Browser) Window, and (re)assign height by calling this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | LouisSung |
| 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