bugfix: missing badges for some small nodes

- now use NO_TITLE instead of height.
This commit is contained in:
Dr.Lt.Data 2023-09-19 21:31:46 +09:00
parent 604a5d7574
commit 1c1139a430
4 changed files with 14 additions and 4 deletions

View File

@ -55,7 +55,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url
# ensure .js
print("### Loading: ComfyUI-Manager (V0.29)")
print("### Loading: ComfyUI-Manager (V0.29.1)")
comfy_ui_required_revision = 1240
comfy_ui_revision = "Unknown"

View File

@ -1550,6 +1550,8 @@
"Prompt With Style",
"Prompt With Style V2",
"Prompt With Style V3",
"Range Float",
"Range Integer",
"Ratio Advanced",
"Resize Image for SDXL",
"Save Image If True",
@ -2735,6 +2737,7 @@
[
"AV_CheckpointModelsToParametersPipe",
"AV_ControlNetEfficientLoader",
"AV_ControlNetEfficientLoaderAdvanced",
"AV_ControlNetEfficientStacker",
"AV_ControlNetLoader",
"AV_ControlNetPreprocessor",
@ -2989,7 +2992,9 @@
],
"https://github.com/tusharbhutt/Endless-Nodes": [
[
"Endless Nodes Parameteriizer",
"Endless Nodes Combo Parameterizer",
"Endless Nodes Combo Parameterizer & Prompts",
"Endless Nodes Parameterizer",
"Endless Nodes Parameterizer & Prompts",
"Endless Nodes Six Input Text Switch",
"Endless Nodes Six Integer IO Switch",

View File

@ -2002,7 +2002,7 @@ app.registerExtension({
nodeType.prototype.onDrawForeground = function (ctx) {
const r = onDrawForeground?.apply?.(this, arguments);
if(!this.flags.collapsed && badge_mode != 'none' && this.size[1] > LiteGraph.NODE_TITLE_HEIGHT) {
if(!this.flags.collapsed && badge_mode != 'none' && nodeType.title_mode != LiteGraph.NO_TITLE) {
let text = "";
if(badge_mode == 'id_nick')
text = `#${this.id} `;

View File

@ -1550,6 +1550,8 @@
"Prompt With Style",
"Prompt With Style V2",
"Prompt With Style V3",
"Range Float",
"Range Integer",
"Ratio Advanced",
"Resize Image for SDXL",
"Save Image If True",
@ -2735,6 +2737,7 @@
[
"AV_CheckpointModelsToParametersPipe",
"AV_ControlNetEfficientLoader",
"AV_ControlNetEfficientLoaderAdvanced",
"AV_ControlNetEfficientStacker",
"AV_ControlNetLoader",
"AV_ControlNetPreprocessor",
@ -2989,7 +2992,9 @@
],
"https://github.com/tusharbhutt/Endless-Nodes": [
[
"Endless Nodes Parameteriizer",
"Endless Nodes Combo Parameterizer",
"Endless Nodes Combo Parameterizer & Prompts",
"Endless Nodes Parameterizer",
"Endless Nodes Parameterizer & Prompts",
"Endless Nodes Six Input Text Switch",
"Endless Nodes Six Integer IO Switch",