Skip to content

Commit

Permalink
Update Screen.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 3, 2024
1 parent acd6d12 commit 790dd62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/project-editor/lvgl/widgets/Screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export class LVGLScreenWidget extends LVGLWidget {
} else {
obj = runtime.wasm._lvglCreateScreen(
parentObj,
runtime.getWidgetIndex(this),
runtime.getWidgetIndex(
getAncestorOfType(this, ProjectEditor.PageClass.classInfo)!
),

rect.left,
rect.top,
Expand Down

0 comments on commit 790dd62

Please sign in to comment.