Skip to content

Commit 12ae2f9

Browse files
committed
修正签名区域高度过小
1 parent d7f4a50 commit 12ae2f9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/ZXingBlazor/Components/Handwritten/Handwritten.razor

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<div class="modal-dialog-w100">
88
<div class="modal-content">
99
<!-- Edit form for the current item -->
10-
<div class="modal-body">
11-
<div id="canvas">
12-
</div>
10+
<div id="canvas" style="height: 300px;">
11+
</div>
12+
<div>
1313
<button class="btn btn-secondary p-2 m-1 w-25" id="clearCanvas">清除</button>
1414
<button class="btn btn-primary p-2 m-1 w-25" id="saveCanvas">保存</button>
1515
</div>

src/ZXingBlazor/ZXingBlazor.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<RazorLangVersion>3.0</RazorLangVersion>
77
<IsPackable>true</IsPackable>
88
<PackageIcon>logo.png</PackageIcon>
9-
<Version>0.1.3</Version>
9+
<Version>0.1.4</Version>
1010
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1111
<Company>Densen Informatica</Company>
1212
<Authors>Alex Chow</Authors>
@@ -25,6 +25,7 @@ Directly call the mobile phone or desktop computer camera to scan the code</Desc
2525
<RepositoryUrl>https://github.com/densen2014/ZXingBlazor</RepositoryUrl>
2626
<RepositoryType>git</RepositoryType>
2727
<PackageTags>ZXingBlazor</PackageTags>
28+
<AssemblyVersion>0.1.4.0</AssemblyVersion>
2829
</PropertyGroup>
2930

3031
<ItemGroup>

src/ZXingBlazor/wwwroot/lib/handwritten/handwritten.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
this.canvas.height = this.el.clientHeight;
7979

8080
this.cxt.fillStyle = this.background;
81-
this.cxt.fillRect(0, 0, this.canvas.width, this.canvas.width);
81+
this.cxt.fillRect(0, 0, this.canvas.width, this.canvas.height);
8282

8383
//this.cxt.fillStyle = "red";
8484
//this.cxt.font = "16px verdana";

0 commit comments

Comments
 (0)