René's URL Explorer Experiment


Title: [BUG] If transform scaling is applied, dragging out and back in will result in wrong positions being tracked · Issue #2575 · gridstack/gridstack.js · GitHub

Open Graph Title: [BUG] If transform scaling is applied, dragging out and back in will result in wrong positions being tracked · Issue #2575 · gridstack/gridstack.js

X Title: [BUG] If transform scaling is applied, dragging out and back in will result in wrong positions being tracked · Issue #2575 · gridstack/gridstack.js

Description: Build interactive dashboards in minutes. Contribute to gridstack/gridstack.js development by creating an account on GitHub.

Open Graph Description: Build interactive dashboards in minutes. Contribute to gridstack/gridstack.js development by creating an account on GitHub.

X Description: Build interactive dashboards in minutes. Contribute to gridstack/gridstack.js development by creating an account on GitHub.

Opengraph URL: https://github.com/gridstack/gridstack.js

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG] If transform scaling is applied, dragging out and back in will result in wrong positions being tracked","articleBody":"## Subject of the issue\r\nWhat the title says. This is a feature that was part of 9.5.0 and there is even a demo here:\r\nhttps://gridstackjs.com/demo/transform.html#\r\nHowever, if the grid is set to acceptWidgets from outside, and you drag an element out of the grid then drag it back in (even if it's from the same grid), then the position of the cursor will follow the unscaled grid instead\r\n\r\n## Your environment\r\n* version of gridstack.js - 10.0.1\r\n* which browser/OS - Chrome/MacOS\r\n\r\n## Steps to reproduce\r\nHere is a fiddle of the two vertical grids demo, but with scale(0.5) applied: https://jsfiddle.net/e2t65s1d/\r\nAdditionally, you can paste this code yourself if the fiddle does not work for some reason:\r\n```\r\n\u003c!DOCTYPE html>\r\n\u003chtml lang=\"en\">\r\n\u003chead>\r\n  \u003cmeta charset=\"utf-8\">\r\n  \u003cmeta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n  \u003ctitle>Two vertical grids demo\u003c/title>\r\n  \u003clink rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css\">\r\n  \u003clink rel=\"stylesheet\" href=\"https://gridstackjs.com/demo/demo.css\"/>\r\n  \u003cscript src=\"https://gridstackjs.com/node_modules/gridstack/dist/gridstack-all.js\">\u003c/script>\r\n\u003c/head>\r\n\u003cbody>\r\n  \u003cdiv class=\"container-fluid\" style=\"transform: scale(0.5)\">\r\n    \u003ch1>Two vertical grids demo - with maxRow\u003c/h1>\r\n    \u003cp>special care is needed to prevent top grid from growing and causing shifts while you are dragging (which is a know issue).\u003cbr>\r\n    You can either set a fix row, or have enough padding on a parent div to allow for an extra row to be created as needed), or....\u003c/p>\r\n    \u003cdiv class=\"grid-stack\" id=\"grid1\">\u003c/div>\r\n    \u003cbr>\r\n    \u003cdiv class=\"grid-stack\" id=\"grid2\">\u003c/div>\r\n  \u003c/div>\r\n  \u003cscript src=\"events.js\">\u003c/script>\r\n  \u003cscript type=\"text/javascript\">\r\n    let opts = {\r\n      row: 1, // set min and max row to freeze the height\r\n      dragOut: true,\r\n      acceptWidgets: true\r\n    }\r\n    GridStack.init(opts, document.getElementById('grid1'))\r\n      .load([{x:0, y:0, content: '0'}, {x:1, y:0, content: '1'}]);\r\n    GridStack.init(opts, document.getElementById('grid2'))\r\n      .load([{x:0, y:0, content: '2'}, {x:1, y:0, content: '3'}]);\r\n  \u003c/script>\r\n\u003c/body>\r\n\u003c/html>\r\n```\r\n\r\n1. Drag an element in the grid out without letting go of the mouse\r\n2. Drag it back in (Still without letting go of the mouse)\r\n3. Move it around the row of the grid and you will see the position is half of what it is supposed to be (In this case, the document has a 0.5 scale)\r\n\r\n## Expected behavior\r\nIf elements are dragged back, they should have the right position\r\n","author":{"url":"https://github.com/Amdoun","@type":"Person","name":"Amdoun"},"datePublished":"2023-12-13T16:02:07Z","url":"https://github.com/gridstack/gridstack.js/issues/2575"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:6fd01f1e-6d69-e7b7-3ca7-66a180a2985e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC344:38CE1B:150988A:1D1CED4:6AFEBB86
html-safe-nonce14287f71f377047a9927342ac0160660cfd254346677b1f7c6e83a1e9ea62fb1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzQ0OjM4Q0UxQjoxNTA5ODhBOjFEMUNFRDQ6NkFGRUJCODYiLCJ2aXNpdG9yX2lkIjoiNjk2MTMyNjE2ODE2MzEzODQzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7cf84235a26c909cf9d132b96800775a7ce3b9430de31b5183d027b0c86de757
hovercard-subject-tagrepository:26417283
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/gridstack/gridstack.js/issues/2575
twitter:imagehttps://repository-images.githubusercontent.com/26417283/3a305f80-8980-11eb-8d49-c9270c2c4e4b
twitter:cardsummary_large_image
og:imagehttps://repository-images.githubusercontent.com/26417283/3a305f80-8980-11eb-8d49-c9270c2c4e4b
og:image:altBuild interactive dashboards in minutes. Contribute to gridstack/gridstack.js development by creating an account on GitHub.
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None95b2753c978240785d6cca00783c00a371b2d7d9879bb32e305170a1b19bd28e
turbo-cache-controlno-cache
go-importgithub.com/gridstack/gridstack.js git https://github.com/gridstack/gridstack.js.git
octolytics-dimension-user_id31674162
octolytics-dimension-user_logingridstack
octolytics-dimension-repository_id26417283
octolytics-dimension-repository_nwogridstack/gridstack.js
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id26417283
octolytics-dimension-repository_network_root_nwogridstack/gridstack.js
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee1ce4c46d35aa8463a597a1bbffd4f0a456edb38
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/gridstack/gridstack.js/issues/2575#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgridstack%2Fgridstack.js%2Fissues%2F2575
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgridstack%2Fgridstack.js%2Fissues%2F2575
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=gridstack%2Fgridstack.js
Reloadhttps://github.com/gridstack/gridstack.js/issues/2575
Reloadhttps://github.com/gridstack/gridstack.js/issues/2575
Reloadhttps://github.com/gridstack/gridstack.js/issues/2575
https://github.com/gridstack/gridstack.js
New issuehttps://github.com/login?return_to=https://github.com/gridstack/gridstack.js/issues/2575
New issuehttps://github.com/login?return_to=https://github.com/gridstack/gridstack.js/issues/2575
[BUG] If transform scaling is applied, dragging out and back in will result in wrong positions being trackedhttps://github.com/gridstack/gridstack.js/issues/2575#top
severity:lowhttps://github.com/gridstack/gridstack.js/issues?q=state%3Aopen%20label%3A%22severity%3Alow%22
type:bughttps://github.com/gridstack/gridstack.js/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com/Amdoun
Amdounhttps://github.com/Amdoun
on Dec 13, 2023https://github.com/gridstack/gridstack.js/issues/2575#issue-2040020857
https://gridstackjs.com/demo/transform.html#https://gridstackjs.com/demo/transform.html
https://jsfiddle.net/e2t65s1d/https://jsfiddle.net/e2t65s1d/
https://github.com/adumesny
adumesnyhttps://github.com/adumesny
on Dec 13, 2023https://github.com/gridstack/gridstack.js/issues/2575#issuecomment-1854860513
@elmehdiamlouhttps://github.com/elmehdiamlou
adumesnyhttps://github.com/adumesny
type:bughttps://github.com/gridstack/gridstack.js/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
severity:lowhttps://github.com/gridstack/gridstack.js/issues?q=state%3Aopen%20label%3A%22severity%3Alow%22
on Dec 13, 2023https://github.com/gridstack/gridstack.js/issues/2575#event-11241772965
adumesnyhttps://github.com/adumesny
on Mar 30, 2024https://github.com/gridstack/gridstack.js/issues/2575#event-12301725900
Sign up for freehttps://github.com/signup?return_to=https://github.com/gridstack/gridstack.js/issues/2575
Sign in to commenthttps://github.com/login?return_to=https://github.com/gridstack/gridstack.js/issues/2575
severity:lowhttps://github.com/gridstack/gridstack.js/issues?q=state%3Aopen%20label%3A%22severity%3Alow%22
type:bughttps://github.com/gridstack/gridstack.js/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.