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

show calculated width #1024

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

show calculated width #1024

wants to merge 1 commit into from

Conversation

kfarr
Copy link
Collaborator

@kfarr kfarr commented Jan 15, 2025

doesn't work, the value is not updated

the value is not updated
@vincentfretin
Copy link
Collaborator

yeah that part of the react ui updates only if there is an entityupdate, componentremove, or componentadd event, or selected entity changed
I guess you could run

const selectedEntity = AFRAME.INSPECTOR.selectedEntity;
if (selectedEntity === this.el) {
  AFRAME.INSPECTOR.selectEntity(null)
  AFRAME.INSPECTOR.selectEntity(selectedEntity);
}

from manage-street component to force an update, that's not super clean but meh

@vincentfretin
Copy link
Collaborator

Or reintroduce an refreshsidebar event we had previously I think and run Events.emit('refreshsidebar') from the component.

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