Skip to content

Inspector: Use absolute positioning and add alignment configuration - #34137

Merged
sunag merged 2 commits into
mrdoob:devfrom
sunag:dev-inspector-1
Jul 29, 2026
Merged

sunag merged 2 commits into
mrdoob:devfrom
sunag:dev-inspector-1

Conversation

@sunag

@sunag sunag commented Jul 29, 2026 •

Copy link
Copy Markdown
Collaborator

Related issue: #34085

Description

  • Positioning limitations: The use of position: fixed forced the inspector layout to be relative to the viewport. Switching to position: absolute enables rendering the inspector inside specific parent DOM containers.

  • Programmatic control: Adding methods to show, hide, and configure the inspector's alignment allows API users to manage the GUI lifecycle and initial layout programmatically.

  • Overlap/Collision issues: Hardcoded styles caused the toggle button and mini-panel to overlap with the main panel when opened or maximized. Dynamic class computation resolves these conflicts automatically.

  • API Changes (Inspector.js):

    • Added setVisible( value ) and getVisible() to programmatically toggle inspector visibility.
    • Added setHorizontalAlign( value ) and setVerticalAlign( value ) to configure and retrieve alignment settings.

@sunag sunag added this to the r186 milestone Jul 29, 2026
@sunag
sunag marked this pull request as ready for review July 29, 2026 04:42
@sunag
sunag merged commit ea56c2f into mrdoob:dev Jul 29, 2026
8 checks passed
@sunag
sunag deleted the dev-inspector-1 branch July 29, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant