[
https://issues.apache.org/jira/browse/TOBAGO-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bernd Bohmann resolved TOBAGO-2271.
-----------------------------------
Resolution: Fixed
> Error for lazy tc:sheet with only one row
> -----------------------------------------
>
> Key: TOBAGO-2271
> URL: https://issues.apache.org/jira/browse/TOBAGO-2271
> Project: MyFaces Tobago
> Issue Type: Bug
> Components: JavaScript
> Affects Versions: 5.9.0
> Reporter: Verena Schreyer
> Assignee: Bernd Bohmann
> Priority: Major
> Labels: sheet
> Fix For: 5.9.1, 6.1.1
>
> Attachments: error.PNG
>
>
> If the property "lazy" for tc:sheet is set to "true" and there is only one
> row in the sheet the following error occurs:
>
> {color:#ff0000}Uncaught TypeError: Cannot read properties of undefined
> (reading 'offsetTop'){color}
> {color:#ff0000} at get firstVisibleRowIndex [as firstVisibleRowIndex]
> (tobago-sheet.ts:345:33){color}
> {color:#ff0000} at HTMLElement.nextLazyLoad (tobago-sheet.ts:404:39){color}
> {color:#ff0000} at HTMLElement.lazyCheck (tobago-sheet.ts:389:23){color}
> {color:#ff0000} at HTMLElement.connectedCallback
> (tobago-sheet.ts:248:12){color}
> {color:#ff0000} at HTMLDocument.<anonymous> (tobago-sheet.ts:970:27){color}
> {color:#ff0000} at tobago-all.ts:65:12{color}
> {color:#ff0000} at tobago.js:1:62{color}
> {color:#ff0000} at tobago.js:1:66{color}
>
> {color:#ff0000}!error.PNG|height=250,width=600!{color}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)