scenerygraphics/sciview

Node name width is too small in inspector when creating some nodes

Opened this issue · 3 comments

To recreate:

  1. Launch SciView
  2. Demo > Basic > Lines

The Name of the node is smaller in the inspector UI than it should be.

image

The text box in the tree view does get updated once you click on the Name text box in the properties panel.

@moreApi I think you did something like this recently. I suspect the problem is that we are using scenery's setName on a sciview node and the update doesn't trigger a tree refresh, here:

sciView.addLine( points, Colors.LIGHTSALMON, edgeWidth ).setName( "Lines Demo" );

How do we fix these things?

I did some property change watching for my network stuff, but there I looked actively.

Since we have no system in place to listen to property changes, we have to manually trigger an update if the name is changed, build something of a property change observable or look each frame for a change.

The text of the field is updated right? Then we "just" need to find where that happens and update the size of the field.