Skip to content

show calculated width#1024

Draft
kfarr wants to merge 1 commit intomainfrom
show-calculated-width
Draft

show calculated width#1024
kfarr wants to merge 1 commit intomainfrom
show-calculated-width

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