Updated dimensions for config and removed non-existent fields (#74) (#101)

This commit is contained in:
Cole Funseth 2020-01-04 15:37:06 -06:00 committed by Nick Bisby
parent 004f29b6a7
commit ec336c5d67
3 changed files with 9 additions and 17 deletions

View File

@ -2,21 +2,14 @@ sub init()
m.name = m.top.findNode("label")
m.value = m.top.findNode("value")
m.top.layoutDirection = "horiz"
m.top.vertAlignment = "top"
m.name.width = 250
m.name.height = 80
m.name.width = 240
m.name.height = 75
m.name.vertAlign = "center"
m.name.horizAlign = "center"
' TODO - calculate "width" better... this is total item - (label + spacings)
m.value.width = 1000 - 230
m.value.height = 80
m.value.hintText = "Enter a value..."
m.value.maxTextLength = 100
m.value.maxTextLength = 120
end sub
sub itemContentChanged()
@ -40,4 +33,4 @@ sub setColors()
m.name.color = color
m.value.textColor = color
end sub
end sub

View File

@ -6,9 +6,8 @@ sub init()
m.top.observeField("itemSelected", "onItemSelected")
m.top.itemSize = [1000, 80]
m.top.itemSpacing = [0, 20]
m.top.vertAlign = "middle"
m.top.itemSize = [750, 75]
m.top.itemSpacing = [0, 25]
m.top.setfocus(true)
@ -68,4 +67,4 @@ end sub
sub dismiss_dialog()
m.dialog.close = true
end sub
end sub

View File

@ -7,7 +7,7 @@
translation="[150, 150]" />
<ConfigList
id="configOptions"
translation="[150, 250]" />
translation="[150, 240]" />
<Button
id="submit"
text="Submit"
@ -16,7 +16,7 @@
<label text=""
id="alert"
font="font:MediumSystemFont"
translation="[150, 550]" />
translation="[150, 555]" />
</children>
<script type="text/brightscript" uri="scene.brs"/>
</component>