Skip to content

Commit 053cb1d

Browse files
authored
Merge pull request #223 from anmcgrath/add-height-and-width-to-editor-layer
Add height and width to editor component
2 parents 2a3b5d8 + a8b08d5 commit 053cb1d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/BlazorDatasheet.SharedPages/Components/Examples/Customisation/ProgressEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@inherits BlazorDatasheet.Edit.BaseEditor
55

66
<input type="range"
7-
style="width:@(CellWidth)px;height: @(CellHeight)px; outline: none;"
7+
style=" outline: none; width: 100%; height: 100%;"
88
min="0" max="200" @bind-value="CurrentValue" @ref="InputRef"/>
99

1010
@code {

src/BlazorDatasheet/Edit/EditorLayer.razor

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@
221221
sb.AddStyle("left", $"{left + 1}px;");
222222
sb.AddStyle("top", $"{top + 1}px;");
223223

224+
sb.AddStyle("width", w + "px");
225+
sb.AddStyle("height", h + "px");
226+
224227
sb.AddStyle("max-width", LayerWidth + "px");
225228
sb.AddStyle("max-height", LayerHeight + "px");
226229

0 commit comments

Comments
 (0)