positron
positron copied to clipboard
OffsetParent is null, preventing dialog display of session info dialog
System details:
Positron and OS details:
Main on 4/30/25 and before.
Interpreter details:
Python 3.12.6
Describe the issue:
Seeing offsetParent show up as null in automated tests:
TypeError: Cannot read properties of null (reading 'offsetParent')
at Module.getTopLeftOffset (http://localhost:9000/oss-dev/static/out/vs/base/browser/dom.js:469:32)
at http://localhost:9000/oss-dev/static/out/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.js:81:45
at http://localhost:9000/oss-dev/static/out/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.js:215:9
at Xr (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:24134)
at co (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:31424)
at ra (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:31279)
at df (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:30830)
at yf (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:40560)
at fn (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:39930)
at la (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:35466)
Cannot read properties of null (reading 'offsetParent')
TypeError: Cannot read properties of null (reading 'offsetParent')
at Module.getTopLeftOffset (http://localhost:9000/oss-dev/static/out/vs/base/browser/dom.js:469:32)
at http://localhost:9000/oss-dev/static/out/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.js:81:45
at http://localhost:9000/oss-dev/static/out/vs/workbench/browser/positronComponents/positronModalPopup/positronModalPopup.js:215:9
at Xr (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:24134)
at co (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:31424)
at ra (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:31279)
at df (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:30830)
at yf (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:40560)
at fn (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:39930)
at la (http://localhost:9000/oss-dev/static/out/esm-package-dependencies/v135/[email protected]/es2022/react-dom.mjs:12:35466)
Steps to reproduce the issue:
This only seems to be happening on occasion in automated tests:
https://d38p2avprg8il3.cloudfront.net/playwright-report-14763763902-3861/trace/index.html?trace=https://d38p2avprg8il3.cloudfront.net/playwright-report-14763763902-3861/data/7d57d4b478f739cfd35180e1cdd84dadb9532558.zip
Expected or desired behavior:
Dialog opens, even if not in optimal location
Were there any error messages in the UI, Output panel, or Developer Tools console?
See above.