Skip to content

Commit

Permalink
fix slider
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenrats committed Feb 7, 2023
1 parent d01c455 commit a4d811d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
11 changes: 6 additions & 5 deletions components/PersonDetails.brs
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ sub loadPerson()
item = m.top.itemContent
itemData = item.json
m.top.Id = itemData.id
m.top.findNode("Name").Text = itemData.Name
m.top.findNode("Name").font.size = 70
name = m.top.findNode("Name")
name.Text = itemData.Name
name.font.size = 70
if itemData.PremiereDate <> invalid and itemData.PremiereDate <> ""
lifeStringLabel = createObject("rosgnode", "Label")
lifeStringLabel.id = "premierDate"
lifeStringLabel.font = "font:SmallestBoldSystemFont"
lifeStringLabel.height = "100"
lifeStringLabel.vertAlign = "bottom"
m.top.findNode("Name").vertAlign = "top"
m.top.findNode("Name").font.size = 60
name.vertAlign = "top"
name.font.size = 60
m.top.findNode("title_rectangle").appendChild(lifeStringLabel)
birthDate = CreateObject("roDateTime")
birthDate.FromISO8601String(itemData.PremiereDate)
Expand All @@ -45,7 +46,7 @@ sub loadPerson()
end if
end if
lifeString = lifeString + " * " + tr("Age") + ": " + stri(age)
m.top.findNode("premierDate").Text = lifeString
lifeStringLabel.Text = lifeString
end if
if itemData.Overview <> invalid and itemData.Overview <> ""
m.dscr.text = itemData.Overview
Expand Down
1 change: 0 additions & 1 deletion components/extras/ExtrasRowList.brs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ sub onAdditionalPartsLoaded()
else
m.top.rowItemSize = [[234, 396]]
end if
m.top.translation = "[75,10]"

' Load Cast and Crew and everything else...
m.LoadPeopleTask.peopleList = m.people
Expand Down
2 changes: 1 addition & 1 deletion components/extras/ExtrasSlider.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
showRowLabel="true"
showRowCounter="true"
visible="true"
translation="[12,18]"
translation="[75,10]"
itemComponentName="ExtrasItem" />
<Animation id="pplAnime" duration=".4" repeat="false" >
<Vector2DFieldInterpolator
Expand Down

0 comments on commit a4d811d

Please sign in to comment.