Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Collapsed state was incorrectly calculated in some cases. (#4492)
## Description ref #3994 2 bugs: 1. Wrong calculation of ``` Box Box display=contents Box ``` Example before this PR https://p-882ed593-40cc-4382-b119-15c588d0ce6f-dot-main.development.webstudio.is/ <img width="1311" alt="image" src="https://github.com/user-attachments/assets/0a036ed2-e054-41e6-9771-f8a655d1be7f"> Example After this PR https://p-882ed593-40cc-4382-b119-15c588d0ce6f-dot-fix-collapse.development.webstudio.is/ <img width="1310" alt="image" src="https://github.com/user-attachments/assets/368e12a3-0b9c-480a-ba43-b37b9a160469"> 2. It was possible that Content Block was like ``` Box contents Box contents ``` what caused inability to find it position, outline and collapse attributes ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 0000) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
- Loading branch information