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.name = m.top.findNode("label")
m.value = m.top.findNode("value") m.value = m.top.findNode("value")
m.top.layoutDirection = "horiz" m.name.width = 240
m.top.vertAlignment = "top" m.name.height = 75
m.name.width = 250
m.name.height = 80
m.name.vertAlign = "center" m.name.vertAlign = "center"
m.name.horizAlign = "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.hintText = "Enter a value..."
m.value.maxTextLength = 100 m.value.maxTextLength = 120
end sub end sub
sub itemContentChanged() sub itemContentChanged()

View File

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

View File

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