Skip to content

Commit 446f75a

Browse files
authored
setheight needs to be used after ready to ensure that it takes effect (#18)
1 parent 1ecc2ce commit 446f75a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/UEditor/wwwroot/ueditor-blazor.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ window.UEditorBlazor = {
88

99
domRef.UEditor = UE.getEditor(domRef.id, options);
1010
domRef.UEditor.ready(function () {
11-
editor.invokeMethodAsync('HandleRendered');
11+
editor.invokeMethodAsync('HandleRendered');
12+
domRef.UEditor.setHeight(options.height);
1213
});
1314
domRef.UEditor.addListener('contentchange', function () {
1415
var content = domRef.UEditor.getContent();

0 commit comments

Comments
 (0)