Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cs 6642 resizable panel id undefined #1153

Merged
merged 5 commits into from
Apr 11, 2024

Conversation

tintinthong
Copy link
Contributor

@tintinthong tintinthong commented Apr 10, 2024

https://linear.app/cardstack/issue/CS-6642/resizable-panel-id-undefined

We get a situation when a panel isHidden, the html div id is undefined.

Currently, registration of a panel works like this (its bcos we use a modifier)

  • the panel puts a div with an undefined id
  • the panel group then mutates the div with the defined id during registration
  • its the same the other way, when we toggle a panel to be hidden, the placeholder element will have its id removed. This is bcos registration of a panel is toggled with isHidden arg.

I propose we just stop unregistering via a modifier that is toggled by @isHidden arg

Copy link

github-actions bot commented Apr 10, 2024

Test Results

584 tests  ±0   580 ✔️ ±0   8m 36s ⏱️ ±0s
    1 suites ±0       4 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit 404416e. ± Comparison against base commit fe40346.

♻️ This comment has been updated with latest results.

Comment on lines +303 to +304
assert.hasNumericStyle('.panel-0-content', 'height', 168, 1);
assert.hasNumericStyle('.panel-1-content', 'height', 50, 1);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its not clear to me why this changed

@tintinthong tintinthong requested a review from a team April 10, 2024 07:15
@tintinthong tintinthong merged commit 996fd15 into main Apr 11, 2024
16 checks passed
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.

2 participants