mirror of
https://github.com/kepler155c/opus
synced 2025-01-17 02:42:52 +00:00
ability to specify index in form fields
This commit is contained in:
parent
ae98aaf9d5
commit
c18945467f
@ -60,14 +60,14 @@ function UI.Form:createForm()
|
|||||||
end
|
end
|
||||||
if child.formLabel then
|
if child.formLabel then
|
||||||
child.x = self.labelWidth + self.margin - 1
|
child.x = self.labelWidth + self.margin - 1
|
||||||
child.y = y
|
child.y = child.formIndex and (child.formIndex + self.margin - 1) or y
|
||||||
if not child.width and not child.ex then
|
if not child.width and not child.ex then
|
||||||
child.ex = -self.margin
|
child.ex = -self.margin
|
||||||
end
|
end
|
||||||
|
|
||||||
table.insert(self.children, UI.Text {
|
table.insert(self.children, UI.Text {
|
||||||
x = self.margin,
|
x = self.margin,
|
||||||
y = y,
|
y = child.y,
|
||||||
textColor = colors.black,
|
textColor = colors.black,
|
||||||
width = #child.formLabel,
|
width = #child.formLabel,
|
||||||
value = child.formLabel,
|
value = child.formLabel,
|
||||||
|
Loading…
Reference in New Issue
Block a user