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

Change default lastPaletteHeight to a larger number than 0. #227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mooreorless555
Copy link

This is for that case where you click "Edit Project", do some stuff, then click "Save & Update", and you can't "see" the entity/decal palette anymore. From my experimenting, I think it turns out that lastPaletteHeight was setting the editor palette height to 0.

This doesn't root-cause the issue as to why lastPaletteHeight remains 0 on refresh, but it does fix the entity panel becoming hidden when you save and update your project.

…n't root-cause the issue as to why lastPaletteHeight remains 0 on refresh, but it does fix the entity panel becoming hidden when you save and update your project.
@hubol
Copy link
Contributor

hubol commented Jun 14, 2024

An alternative way to fix might be to only set the element's height when lastPaletteHeight > 0

paletteElement.height(lastPaletteHeight);

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