|
@@ -20,14 +20,19 @@ Sidebar.Geometry.BufferGeometry = function ( editor ) {
|
|
container.clear();
|
|
container.clear();
|
|
container.setDisplay( 'block' );
|
|
container.setDisplay( 'block' );
|
|
|
|
|
|
|
|
+ var text = new UI.Text( 'Attributes' ).setWidth( '90px' );
|
|
|
|
+ container.add( text );
|
|
|
|
+
|
|
|
|
+ var container2 = new UI.Span().setDisplay( 'inline-block' ).setWidth( '160px' );
|
|
|
|
+ container.add( container2 );
|
|
|
|
+
|
|
var index = geometry.index;
|
|
var index = geometry.index;
|
|
|
|
|
|
if ( index !== null ) {
|
|
if ( index !== null ) {
|
|
|
|
|
|
- var panel = new UI.Row();
|
|
|
|
- panel.add( new UI.Text( 'index' ).setWidth( '90px' ) );
|
|
|
|
- panel.add( new UI.Text( ( index.count ).format() ).setFontSize( '12px' ) );
|
|
|
|
- container.add( panel );
|
|
|
|
|
|
+ container2.add( new UI.Text( 'index' ).setWidth( '80px' ) );
|
|
|
|
+ container2.add( new UI.Text( ( index.count ).format() ).setFontSize( '12px' ) );
|
|
|
|
+ container2.add( new UI.Break() );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -37,10 +42,9 @@ Sidebar.Geometry.BufferGeometry = function ( editor ) {
|
|
|
|
|
|
var attribute = attributes[ name ];
|
|
var attribute = attributes[ name ];
|
|
|
|
|
|
- var panel = new UI.Row();
|
|
|
|
- panel.add( new UI.Text( name ).setWidth( '90px' ) );
|
|
|
|
- panel.add( new UI.Text( ( attribute.count ).format() + ' (' + attribute.itemSize + ')' ).setFontSize( '12px' ) );
|
|
|
|
- container.add( panel );
|
|
|
|
|
|
+ container2.add( new UI.Text( name ).setWidth( '80px' ) );
|
|
|
|
+ container2.add( new UI.Text( ( attribute.count ).format() + ' (' + attribute.itemSize + ')' ).setFontSize( '12px' ) );
|
|
|
|
+ container2.add( new UI.Break() );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|