mirror of
https://github.com/JannisX11/blockbench.git
synced 2024-11-27 04:21:46 +08:00
Fix issue with dialog lines
This commit is contained in:
parent
df0c1ae0f2
commit
51d4a9bd3a
@ -209,7 +209,7 @@ function buildForm(dialog) {
|
||||
dialog.updateFormValues(true)
|
||||
}
|
||||
function buildLines(dialog) {
|
||||
let jq_dialog = $(dialog.object)
|
||||
let dialog_content = $(dialog.object).find('.dialog_content')
|
||||
dialog.lines.forEach(l => {
|
||||
if (typeof l === 'object' && (l.label || l.widget)) {
|
||||
|
||||
@ -230,9 +230,9 @@ function buildLines(dialog) {
|
||||
bar.append(widget.getNode())
|
||||
dialog.max_label_width = Math.max(getStringWidth(widget.name), dialog.max_label_width)
|
||||
}
|
||||
jq_dialog.append(bar)
|
||||
dialog_content.append(bar)
|
||||
} else {
|
||||
jq_dialog.append(l)
|
||||
dialog_content.append(l)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user