set role width to image width

This commit is contained in:
sevenrats 2023-02-11 12:13:47 -05:00
parent 3ec90bf1ae
commit 0fa27e3db9
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ sub showContent()
cont = m.top.itemContent
m.name.text = cont.labelText
m.name.maxWidth = cont.imageWidth
m.role.Width = cont.imageWidth
m.role.maxWidth = cont.imageWidth
m.posterImg.uri = cont.posterUrl
m.posterImg.width = cont.imageWidth
m.role.Text = cont.subTitle

View File

@ -10,11 +10,11 @@
<Poster id="posterImg" width="234" height="300" translation="[8,243]" failedBitmapUri="pkg:/images/baseline_person_white_48dp.png" />
<ScrollingLabel id="pLabel"
horizAlign="center" vertAlign="bottom"
maxWidth="266" height="48"
height="48"
font="font:SmallestBoldSystemFont" repeatCount="0"/>
<ScrollingLabel id="SubTitle"
horizAlign="center" vertAlign="center"
maxWidth="234" height="32"
height="32"
font="font:SmallestBoldSystemFont" color="#A7A7A7FF" repeatCount = "0" />
</LayoutGroup>
</children>