Announcement

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

    Widgets not rendering bottom line

    Please see the attached image to notice that both the detail fiels and the bottom label do not render the bottom, enclosing line. This is occurring despite the fact that the margins are set.

    1. SmartClient Version: SC_SNAPSHOT-2012-02-23_v8.2p/Pro Deployment (built 2012-02-23)

    2. FireFox 10.0.2

    3. Sample code:
    VLayout previewPanesAndCommentsVLayout = new VLayout();
    previewPanesAndCommentsVLayout.setMargin(10);
    previewPanesAndCommentsVLayout.setMembersMargin(5);
    HLayout previewPanesHLayout = new HLayout();
    previewPanesHLayout.setMargin(10);

    if(isIconPreview()){
    previewImage = new Img("/images/product-Images/eclipse_update_120.jpg");
    previewImage.setHeight(100);
    previewPanesHLayout.addMember(previewImage);
    }

    ArrayList<String[]> detailViewerFieldNames = detailFieldName;

    detailViewers = new DetailViewer[detailViewerFieldNames.size()];

    int viewerPanelNumber = 0;
    for(String[] panelFields : detailViewerFieldNames){
    DetailViewerField[] detailViewerFields = new DetailViewerField[panelFields.length];
    int fieldNumber = 0;
    for(String fieldName : panelFields){
    DetailViewerField field = new DetailViewerField(fieldName, entityDataSource.getField(fieldName).getTitle());
    detailViewerFields[fieldNumber] = field;
    fieldNumber++;
    }
    DetailViewer detailViewer = new DetailViewer();
    detailViewer.setFields(detailViewerFields);
    detailViewer.setEmptyMessage("");
    detailViewer.setWidth(100 / detailViewerFieldNames.size() + "%");
    detailViewer.setMargin(10);
    previewPanesHLayout.addMember(detailViewer);
    //add to the instance variable to provide globally accessible references
    detailViewers[viewerPanelNumber] = detailViewer;
    viewerPanelNumber++;
    }
    previewPanesAndCommentsVLayout.addMember(previewPanesHLayout);

    CommentsLabel = new Label();
    CommentsLabel.setWidth100();
    CommentsLabel.setHeight(30);
    CommentsLabel.setPadding(3);
    CommentsLabel.setWrap(true);
    CommentsLabel.setValign(VerticalAlignment.TOP);
    Attached Files
    Last edited by Mitch B; 30 Mar 2012, 12:06.

    #2
    Inserting various objects beneath the Label made no difference. Changing the Label widget for a BlurbItem and inserting it into a DynamicForm resolved the issue. DynamicForms seems to be the most reliable with respect to maintaining formatting. This canvas has other - data related - capability which did not make the most obvious candidate as the go to canvas for maintaining UI integrity across browsers. It would helpful to understand this better.

    Comment

    Working...
    X