Skip to content

Commit 2c38c0f

Browse files
authored
fix(PdfReader): make FitMode work (#898)
* fix(PdfReader): make FitMode work * chore: bump version 10.0.25
1 parent 1035e03 commit 2c38c0f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/BootstrapBlazor.PdfReader/BootstrapBlazor.PdfReader.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.0.24</Version>
4+
<Version>10.0.25</Version>
55
</PropertyGroup>
66

77
<PropertyGroup>

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ protected override async Task InvokeInitAsync()
276276
{
277277
Url,
278278
Data = _data,
279-
FitMode,
279+
FitMode = FitMode.ToDescriptionString(),
280280
EnableThumbnails,
281281
CurrentPage,
282282
TriggerPagesInit = OnPagesInitAsync != null,

src/components/BootstrapBlazor.PdfReader/PdfReader.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ const relayoutToolbar = el => {
395395
const addEventBus = (el, pdfViewer, eventBus, invoke, options) => {
396396
eventBus.on("pagesinit", async () => {
397397
if (options.fitMode) {
398-
pdfViewer.currentScaleValue = fitMode;
398+
pdfViewer.currentScaleValue = options.fitMode;
399399
}
400400

401401
const numPages = pdfViewer.pagesCount;

0 commit comments

Comments
 (0)