Skip to content

Commit

Permalink
Fixed +1 extra page at the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-litvinchik committed Sep 15, 2024
1 parent f8e4167 commit e90f600
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build/dependencies.props
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</PropertyGroup>

<PropertyGroup Label="GroupDocs.Viewer UI Package Versions">
<GroupDocsViewerUI>6.0.21</GroupDocsViewerUI>
<GroupDocsViewerUI>6.0.22</GroupDocsViewerUI>
<GroupDocsViewerUIApi>6.0.9</GroupDocsViewerUIApi>
<GroupDocsViewerUIApiLocalCache>6.0.3</GroupDocsViewerUIApiLocalCache>
<GroupDocsViewerUIApiInMemoryCache>6.0.3</GroupDocsViewerUIApiInMemoryCache>
Expand Down
2 changes: 1 addition & 1 deletion src/GroupDocs.Viewer.UI/assets/main.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions src/GroupDocs.Viewer.UI/client/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class AppComponent extends ViewerAppComponent {
let images = "";
for (let index = 0; index < pages.length; index++) {
const page = pages[index];
images += `<div><img src="${page.data}" alt="Page ${page.number}"></div>`;
images += `<img src="${page.data}" alt="Page ${page.number}">`;
}

let srcdoc = `
Expand Down Expand Up @@ -269,12 +269,8 @@ export class AppComponent extends ViewerAppComponent {
body * {
display: none !important;
}
body div {
display:block !important;
}
body div img {
body img {
display:block !important;
max-width: 100%;
max-height: 100%;
Expand Down

0 comments on commit e90f600

Please sign in to comment.