mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-29 15:56:06 +00:00
minimized check
This commit is contained in:
parent
d9b9854d91
commit
93475ae8aa
|
|
@ -135,9 +135,6 @@ class ChartEditorNoteDataToolbox extends ChartEditorBaseToolbox
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
toolboxNotesCustomKind.value = chartEditorState.noteKindToPlace;
|
toolboxNotesCustomKind.value = chartEditorState.noteKindToPlace;
|
||||||
|
|
||||||
// just to be safe
|
|
||||||
clearNoteKindParams();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override function refresh():Void
|
public override function refresh():Void
|
||||||
|
|
@ -173,6 +170,12 @@ class ChartEditorNoteDataToolbox extends ChartEditorBaseToolbox
|
||||||
{
|
{
|
||||||
super.update(elapsed);
|
super.update(elapsed);
|
||||||
|
|
||||||
|
// current dialog is minimized, dont change the height
|
||||||
|
if (this.minimized)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// toolboxNotesGrid.height + 45
|
// toolboxNotesGrid.height + 45
|
||||||
// this is what i found out is the calculation by printing this.height and grid.height
|
// this is what i found out is the calculation by printing this.height and grid.height
|
||||||
var heightToSet:Int = Std.int(Math.max(DIALOG_HEIGHT, toolboxNotesGrid.height + 45));
|
var heightToSet:Int = Std.int(Math.max(DIALOG_HEIGHT, toolboxNotesGrid.height + 45));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue