Skip to content

Commit

Permalink
Fixed precision on offset inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexyoe committed Jun 15, 2024
1 parent 0cf99aa commit 38a36e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src_web/comfyui/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ export class Bookmark extends RgthreeBaseVirtualNode {
});
this.addWidget<INumberWidget>("number", "X-Offset", 16, (value: number) => {}, {
y: 8 + (LiteGraph.NODE_WIDGET_HEIGHT + 4) * 2,
precision: 0,
});
this.addWidget<INumberWidget>("number", "Y-Offset", 40, (value: number) => {}, {
y: 8 + (LiteGraph.NODE_WIDGET_HEIGHT + 4) * 3,
precision: 0,
});
this.keypressBound = this.onKeypress.bind(this);
this.onConstructed();
Expand Down
2 changes: 2 additions & 0 deletions web/comfyui/bookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ export class Bookmark extends RgthreeBaseVirtualNode {
});
this.addWidget("number", "X-Offset", 16, (value) => { }, {
y: 8 + (LiteGraph.NODE_WIDGET_HEIGHT + 4) * 2,
precision: 0,
});
this.addWidget("number", "Y-Offset", 40, (value) => { }, {
y: 8 + (LiteGraph.NODE_WIDGET_HEIGHT + 4) * 3,
precision: 0,
});
this.keypressBound = this.onKeypress.bind(this);
this.onConstructed();
Expand Down

0 comments on commit 38a36e1

Please sign in to comment.