eclipsesource / eclipsesource/tabris-js
PdfView load event never fired
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
The pdf content is displayed without problem, but the load event is never fired.
->
### Expected behavior
load event works as expected
### Environment
- Tabris.js version: 3.9.0
- Device: Huawei P10 lite, Xiaomi redmi 10 Pro
- OS: Android 8 and 12, Ios 16
### Code snippet
```javascript
import{contentView, PdfView, fs} from "tabris";
fs.openFile({
type: "application/pdf",
quantity: "single"
}).then((result)=>{
if(result.length > 0){
new PdfView({
top: 0,
left: 0,
right: 0,
bottom: 0,
zoomEnabled: true,
pageElevation: 2,
background: "#ffffff",
spacing: 12,
src: result[0]
}).onLoad((event)=>{
console.log(event)
}).appendTo(contentView)
}
});
```
Contributor guide
Assessment
This issue has not been assessed yet.