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);
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);
Comment