[richfaces-issues] [JBoss JIRA] (RF-12236) showcase - rich:extendedDataTable - re-sizing columns breaks horizontal scrolling

Michał Wojciechowski (JIRA) jira-events at lists.jboss.org
Sun Sep 9 16:53:33 EDT 2012


    [ https://issues.jboss.org/browse/RF-12236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716830#comment-12716830 ] 

Michał Wojciechowski commented on RF-12236:
-------------------------------------------

The problem is in richfaces.ui.ExtendedDataTable.updateLayout function. 
(in components/iteration/ui/src/main/resources/META-INF/resources/org.richfaces/extendedDataTable.js file)
When the content is wider than contener following code is executed:
{code}
this.normalPartStyle.width = width + "px"; // rule for width style for all elements
{code}
and
{code}
this.parts.each(function() {		// rule for width style for each element separately
    this.style.width = width + "px"; 	// overrides previous rule for all
});
{code}
but when countin size of the conten only one of these is executed:
{code}
this.normalPartStyle.width = "auto"; // restoring "auto" rule for all elements
{code}
To fix this following code should be added after previous code to restore overriding rule as well:
{code} 
this.parts.each(function() {
	this.style.width = "auto"; // restoring "auto" rule for each element separately
}); 
{code}
But rule for each element separately is not needed because it inherits from rule applied for all elements.
Instead of adding this code following code can be removed:
{code}
this.parts.each(function() {			
    this.style.width = width + "px"; 	
}); 
{code}

and the result is similar.

                
> showcase - rich:extendedDataTable - re-sizing columns breaks horizontal scrolling
> ---------------------------------------------------------------------------------
>
>                 Key: RF-12236
>                 URL: https://issues.jboss.org/browse/RF-12236
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-tables, showcase
>    Affects Versions: 4.2.2.Final
>         Environment: richfaces showcase app
> container: JBoss AS 7.1.1.Final
> browsers: Chrome, Firefox
>            Reporter: Juraj Húska
>             Fix For: 4-Tracking
>
>         Attachments: brokenHorizontalScrolling.png
>
>
> Re-sizing columns on rich:extendedDataTable breaks horizontal scrolling. 
> Note that not all re-sizing activities breaks scrolling, some works properly. I was not able to determine which do and which not, as it is same for frozen and not frozen columns, and also when re-sizing to a bigger width or smaller.
> It was able to reproduce it on RF from 4.0.0.Final to 4.2.2.Final.

--
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



More information about the richfaces-issues mailing list