Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    TreeGrid and vertical alignment for custom components

    SmartGWT PRO v2.3 - registered user
    GWT 2.0.4
    Mozill Firefox 3.6.12

    Hi all,
    I have a problem about vertical alignment of custom components (shown in a blue frame) in a treeGrid. You can see it on attached picture.
    I create components using next code :
    Code:
    @Override
    		protected Canvas createRecordComponent(final ListGridRecord record, Integer colNum) {
    ...
    this a code for initializing treeGrid:
    Code:
       treeGrid.setDataSource(propertiesDS);
       treeGrid.setShowRecordComponents(true);
       treeGrid.setShowRecordComponentsByCell(true);
       treeGrid.setLoadDataOnDemand(false);
       treeGrid.setCanEdit(false);
       treeGrid.setAutoFetchData(true);
       treeGrid.setAlternateRecordStyles(true);
      		//treeGrid.setRecordComponentPosition(EmbeddedPosition.WITHIN);
    		 
       treeGrid.setRecordComponentPoolingMode(RecordComponentPoolingMode.DATA);
    
       treeGrid.setWidth100();
       treeGrid.setHeight100();
       
       TreeGridField nameField = new TreeGridField("name", "NAME", 200);
       TreeGridField valueField = new TreeGridField("value1","VALUE", 260);
       TreeGridField descriptionField = new TreeGridField("description", "DESCRIPTION");
       treeGrid.setFields(nameField, valueField, descriptionField);

    This is an error code:
    WARN:DynamicForm:isc_DynamicForm_10:ignoring bad or negative top: NaN [enable 'sizing' log for stack trace]

    Please help, is it a bug or?
    Attached Files

    #2
    Setting component position to WITHIN and calling setSnapTo("T"); should cause the component to show up at the top of the cells.

    This area has had some work recently - if the above doesn't work, can you try with the latest nightly build.
    If you continue to see the bug let us know. We'll basically need to see a standalone test case so we can run it on our end, reproduce the problem and determine whether its a bug / how to resolve it.

    Thanks
    Isomorphic Software

    Comment

    Working...
    X