In my case, I need to show around 15 column in a form. So I decided to show that table inside a div with horizontal scrollable to avoid the hor-scroll to entire page.
Works fine in firefox, but the strange part is in IE 7, editboxes and date pickers were not scrolling. They are fixed. Other labels, textarea, etc., were scrolling.
But there is not css applied, I tried the same in test xpage without any css but resulting the same.
I have the doubt on the following style in default style sheet - xsp.css
.xspInputFieldEditBox {
border: 1px solid #B3B3B3;
height: 1.25em;
line-height: 1.5em;
margin: 0 0.1em;
overflow: hidden; <---
position: relative; <---
}
And my table with div is like this.. Test Sample table..
<xp:div style="color: red;overflow-x: scroll;width: 600px;">
<xp:table>
<xp:tr>
<xp:td>
<xp:label value="Label" id="label1"></xp:label>
</xp:td>
<xp:td>
<xp:label value="Label" id="label2"></xp:label>
</xp:td>
...
...
<xp:td>
<xp:label value="Label" id="label13"></xp:label>
</xp:td>
<xp:td>
<xp:label value="Label" id="label14"></xp:label>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:inputText id="inputText1"></xp:inputText>
</xp:td>
<xp:td>
<xp:inputText id="inputText2"></xp:inputText>
</xp:td>
...
...
<xp:td>
<xp:inputText id="inputText13"></xp:inputText>
</xp:td>
<xp:td>
<xp:inputText id="inputText14"></xp:inputText>
</xp:td>
</xp:tr>
<xp:tr>
<xp:td>
<xp:inputText id="inputText15">
<xp:dateTimeHelper id="dateTimeHelper5"></xp:dateTimeHelper>
<xp:this.converter>
<xp:convertDateTime type="date"></xp:convertDateTime>
</xp:this.converter>
</xp:inputText>
</xp:td>
...
...
<xp:td>
<xp:inputText id="inputText28">
<xp:dateTimeHelper id="dateTimeHelper18"></xp:dateTimeHelper>
<xp:this.converter>
<xp:convertDateTime type="date"></xp:convertDateTime>
</xp:this.converter>
</xp:inputText>
</xp:td>
</xp:tr>
</xp:table>
</xp:div>
I have tried in many ways by inheritting css, but no luck. Thanks in advance.