[richfaces-issues] [JBoss JIRA] Updated: (RF-7138) scrollableDataTable: JavaScript error if user press up/down arrow key in case of only item
Denis Petrunin (JIRA)
jira-events at lists.jboss.org
Sat Apr 17 14:48:59 EDT 2010
[ https://jira.jboss.org/jira/browse/RF-7138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Petrunin updated RF-7138:
-------------------------------
Environment:
RichFaces 3.3.0.GA / 3.3.3.CR1 / 3.3.3.Final
Windows XP
Firefox 3.0.10 / 3.5.8 / 3.6.3
IE 6.0 / 8.0
was:
RichFaces 3.3.0.GA / 3.3.3.CR1
Windows XP
Firefox 3.0.10 / 3.5.8
Affects Version/s: 3.3.3.Final
Issue can be reproduced in RF 3.3.3.Final
> scrollableDataTable: JavaScript error if user press up/down arrow key in case of only item
> ------------------------------------------------------------------------------------------
>
> Key: RF-7138
> URL: https://jira.jboss.org/jira/browse/RF-7138
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-ScrollableDataTable
> Affects Versions: 3.3.0, 3.3.3.CR1, 3.3.3.Final
> Environment: RichFaces 3.3.0.GA / 3.3.3.CR1 / 3.3.3.Final
> Windows XP
> Firefox 3.0.10 / 3.5.8 / 3.6.3
> IE 6.0 / 8.0
> Reporter: Denis Petrunin
> Assignee: Konstantin Mishin
> Priority: Minor
> Fix For: Future
>
>
> 1) open page with rich:scrollableDataTable, table must contain only item.
> 2) click on item
> 3) press down arrow key
> As result there is JavaScript error:
> this.nTable.rows[1] is undefined
> http://localhost:8080/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/controls-scrollable-data-table.js
> error in line: 94
> for(var i=0;i<rows.length;i++){rows[i].removeChild(rows[i].cells[index]);}},showRow:function(rowIndex){if(rowIndex=="up"){this.scrollBox.getElement().scrollTop=this.scrollBox.getElement().scrollTop-this.nTable.rows[1].offsetTop;}else if(rowIndex=="down"){this.scrollBox.getElement().scrollTop=this.scrollBox.getElement().scrollTop+this.nTable.rows[1].offsetTop;}else{var row=$(this.gridId+":n:"+rowIndex);var offsetTop=this.nTable.offsetTop+row.offsetTop;if(this.contentBox.getElement().scrollTop>offsetTop){this.scrollBox.getElement().scrollTop=offsetTop;}else{offsetTop+=row.offsetHeight;offsetTop-=this.contentBox.getElement().clientHeight;if(this.contentBox.getElement().scrollTop<offsetTop){this.scrollBox.getElement().scrollTop=offsetTop;}}}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list