Skip to content

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

Open
mooreorless555 wants to merge 1 commit into
Ogmo-Editor-3:masterfrom
mooreorless555:fixes3
Open

Change default lastPaletteHeight to a larger number than 0.#227
mooreorless555 wants to merge 1 commit into
Ogmo-Editor-3:masterfrom
mooreorless555:fixes3

Conversation

@mooreorless555
Copy link
Copy Markdown

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
Copy Markdown
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