diff options
| author | bob <bcz@cs.brown.edu> | 2019-10-01 10:12:50 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-10-01 10:12:50 -0400 |
| commit | faaff9fe8aab3bd5d116eab8bd85198a0756fe30 (patch) | |
| tree | bbfcaf95e462b298aa7645049443ad9932f780a8 /src/client/views/pdf | |
| parent | 9e1234abe64d289927122ad641e3bcaf0b9eaf6e (diff) | |
fixed issues with pdf loading and layout.
Diffstat (limited to 'src/client/views/pdf')
| -rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 13fd8ea98..3bf53340b 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -628,7 +628,7 @@ export class PDFViewer extends React.Component<IViewerProps> { } let nativeWidth = NumCast(this.props.Document.nativeWidth); let nativeHeight = NumCast(this.props.Document.nativeHeight); - return <img key={this._coverPath.path} src={this._coverPath.path} onLoad={action(() => this._showWaiting = false)} + return <img key={this._coverPath.path} src={this._coverPath.path} onError={action(() => this._coverPath.path = "http://www.cs.brown.edu/~bcz/face.gif")} onLoad={action(() => this._showWaiting = false)} style={{ position: "absolute", display: "inline-block", top: 0, left: 0, width: `${nativeWidth}px`, height: `${nativeHeight}px` }} />; } |
