I have nested VLayouts to which I add HLayouts in a loop. Each HLayout has a DynamicForm
The code above adds unwanted table and div element to the html body
The div with id isc_styleTester adds a grey background to half of my screen because I have background set to grey in css class 'documentListFlowAlt'.
Question 1: Why is SmartGwt adding these table and div elements to the body.
Question 2: Can we configure the components not to create these unwanted elements?
SmartGWT version = 2.2
Browser = Firefox 3.6.10 and IE 6
Thanks
Adnan
Code:
final VLayout mainPanel = new VLayout();
for(...)
{
final VLayout documentPanel = new VLayout();
if(index == 0 || index % 2 == 0)
documentPanel.setStyleName("documentListFlowAlt");
else
documentPanel.setStyleName("documentListFlow");
for(...)
{
HLayout documentTitlePanel = new HLayout();
...
DynamicForm form = new DynamicForm();
...
...
documentTitlePanel.addMember(form);
documentPanel.addMember(documentTitlePanel ) ;
}
mainPanel.addMember(documentPanel);
}
RootPanel.get(DOCUMENT_SELECTOR_CONTAINER).add(mainPanel);
Code:
<table cellpadding="81" style="position: absolute; left: 0px; top: -300px;"> <tbody> <tr> <td id="isc_cellStyleTester" class="documentListFlowAlt"> </td> </tr> </tbody> </table> <div style="position: absolute; left: 0px; top: -100px;" id="isc_styleTester" class="documentListFlowAlt"> </div>
Question 1: Why is SmartGwt adding these table and div elements to the body.
Question 2: Can we configure the components not to create these unwanted elements?
SmartGWT version = 2.2
Browser = Firefox 3.6.10 and IE 6
Thanks
Adnan
Comment