[
https://issues.jboss.org/browse/RF-12470?page=com.atlassian.jira.plugin.s...
]
Jeff Smith commented on RF-12470:
---------------------------------
After further review, the updateLayout function in the extendedDataTable.js is not setting
the value properly for contentWidth. On every other click the this.parts.width() was
setting the contentWidth to the same value as width. If contentWidth is not greater than
width variable, the scrollElement is block style is set to none. I got the javascript to
work by setting this.parts.width() to a new variable in the initialize method. And in the
updateLayout method, assigned contentWidth the value of the new variable. Now the
extendedDataTable horizontal scroll remains when resizing columns.
Extended DataTable Scrollbar Disappears When Resizing Columns
-------------------------------------------------------------
Key: RF-12470
URL:
https://issues.jboss.org/browse/RF-12470
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 4.2.2.Final
Reporter: Jeff Smith
Fix For: 4.3-Tracking
Having issue with extended data table horizontal scroll bar disappearing when resizing
columns. When researching the issue further in the extendedDataTable.js, I found that the
scrollable element style display property was being set to NONE instead of BLOCK when a
column was resized. My work around was to call the updateLayout function and set the
scrollable element style display property to block. This has seemed to work thus far.
{code}
document.onmouseup = function(e) {
#{rich:component('EDT_NAME')}.updateLayout();
#{rich:component('EDT_NAME')}.scrollElement.style.display =
"block";
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira