|
7 | 7 | m.poster = m.top.findNode("poster") |
8 | 8 | m.name = m.top.findNode("name") |
9 | 9 | m.baseUrl = m.top.findNode("baseUrl") |
10 | | - m.labels = m.top.findNode("labels") |
11 | 10 |
|
12 | 11 | ' Set focus border color to primary color and size it to cover the entire component |
13 | | - if isValid(m.focusBorder) |
14 | | - m.focusBorder.blendColor = m.global.constants.colorPrimary |
15 | | - ' Size the border to cover the entire component with some padding |
16 | | - ' get the itemSize of the parent MarkupList |
17 | | - parentList = m.top.getParent() |
18 | | - if isValid(parentList) and parentList.hasField("itemSize") |
19 | | - itemSize = parentList.itemSize |
20 | | - if isValid(itemSize) and itemSize.Count() = 2 |
21 | | - m.focusBorder.width = itemSize[0] |
22 | | - m.focusBorder.height = itemSize[1] |
23 | | - end if |
| 12 | + m.focusBorder.blendColor = m.global.constants.colorPrimary |
| 13 | + ' Size the border to cover the entire component with some padding |
| 14 | + ' get the itemSize of the parent MarkupList |
| 15 | + parentList = m.top.getParent() |
| 16 | + if isValid(parentList) and parentList.hasField("itemSize") |
| 17 | + itemSize = parentList.itemSize |
| 18 | + if isValid(itemSize) and itemSize.Count() = 2 |
| 19 | + m.focusBorder.width = itemSize[0] |
| 20 | + m.focusBorder.height = itemSize[1] |
24 | 21 | end if |
25 | | - ' m.focusBorder.translation = [-10, -5] |
26 | 22 | end if |
27 | 23 | end sub |
28 | 24 |
|
|
0 commit comments