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

Preact Elements tab does not show components as a tree #387

Open
aptash opened this issue Jun 2, 2022 · 6 comments
Open

Preact Elements tab does not show components as a tree #387

aptash opened this issue Jun 2, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@aptash
Copy link

aptash commented Jun 2, 2022

Hello!

Often "Elements" tab shows components in a view different then a tree-view.
I have to switch between Preact tabs to restore a tree-view.
Preact Developer Tools: 4.2.0

image

@marvinhagemeister marvinhagemeister added the bug Something isn't working label Jun 2, 2022
@marvinhagemeister
Copy link
Member

Looks like for some reason the window dimensions are wrong during size calculations. From the screenshot I'm assuming it's receiving a value of 0. Haven't been able to reproduce that on my end so far. Does slightly resizing the devtools window work too? If yes than it's definitely a wrong value for the initial window width.

@aptash
Copy link
Author

aptash commented Jun 2, 2022

It seems you are right!
Slightly resizing the devtools window works alright!
The tree became ok at once.

I can not reproduce the problem when I wish. But the problem happens very often during the day.

@marvinhagemeister
Copy link
Member

Just put v4.3.1 up for review in the browsers extension stores. The new version should be live soon and contains some improvements to the resizing logic. Let me know if this fixes the issue you're seeing.

@aptash
Copy link
Author

aptash commented Jun 7, 2022

Unfortunately I've just got the issue again:

Preact Developer Tools: 4.3.1
image

But today it's the first time after a few hours of using Preact Developer Tools. So in general it became better.
Resizing helped as before.

I will try to catch the problem case and to keep you informed

@aptash
Copy link
Author

aptash commented Jun 8, 2022

Caught it again today after a few hours of using.
It was maximised. Exit from maximised mode didn't help. But resizing after that did the job.
image

@aptash
Copy link
Author

aptash commented Jun 16, 2022

Unfortunately it's still happening. I got it yesterday once. And today twice during 2 hours. I use DevTools maximised.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants