Updated Season Row Height
1. Fix Season row height The row was overlapping the extras group 2. Expanded the row so the counter was not cut off the screen
This commit is contained in:
parent
6492fd3eda
commit
4bd7e38399
|
@ -30,14 +30,15 @@ sub updateSize()
|
|||
|
||||
' Always reserve the bottom for the Poster Title
|
||||
m.title.maxWidth = maxSize[0]
|
||||
m.title.height = 80
|
||||
m.title.translation = [0, int(maxSize[1]) - m.title.height]
|
||||
m.title.height = 70
|
||||
m.title.translation = [0, int(maxSize[1]) - (m.title.height-10)]
|
||||
print "[0," int(maxSize[1]) - m.title.height"]"
|
||||
|
||||
m.staticTitle.width = maxSize[0]
|
||||
m.staticTitle.height = 80
|
||||
m.staticTitle.translation = [0, int(maxSize[1]) - m.title.height]
|
||||
m.staticTitle.height = 70
|
||||
m.staticTitle.translation = [0, int(maxSize[1]) - (m.title.height-10)]
|
||||
|
||||
ratio = 1.5
|
||||
ratio = 2.5
|
||||
if image <> invalid and image.width <> 0 and image.height <> 0
|
||||
ratio = image.height / image.width
|
||||
end if
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<component name="ListPoster" extends="Group">
|
||||
<children>
|
||||
<Rectangle id="backdrop" />
|
||||
<Poster id="poster" translation="[2, 0]" />
|
||||
<Poster id="poster" translation="[2, 25]" />
|
||||
<ScrollingLabel id="title"
|
||||
horizAlign="center"
|
||||
font="font:SmallSystemFont"
|
||||
|
|
|
@ -6,7 +6,7 @@ sub init()
|
|||
|
||||
m.top.showRowLabel = [false]
|
||||
m.top.showRowCounter = [true]
|
||||
m.top.rowLabelOffset = [0, 5]
|
||||
m.top.rowLabelOffset = [0, 0]
|
||||
|
||||
updateSize()
|
||||
|
||||
|
@ -15,17 +15,17 @@ end sub
|
|||
|
||||
sub updateSize()
|
||||
itemWidth = 200
|
||||
itemHeight = 380 ' width * 1.5 + text
|
||||
itemHeight = 320 ' width * 1.5 + text
|
||||
|
||||
m.top.visible = true
|
||||
|
||||
' size of the whole row
|
||||
m.top.itemSize = [1700, itemHeight]
|
||||
m.top.itemSize = [1800, (itemHeight+40)]
|
||||
' spacing between rows
|
||||
m.top.itemSpacing = [0, 0]
|
||||
|
||||
' size of the item in the row
|
||||
m.top.rowItemSize = [itemWidth, itemHeight]
|
||||
m.top.rowItemSize = [itemWidth, itemHeight ]
|
||||
' spacing between items in a row
|
||||
m.top.rowItemSpacing = [0, 0]
|
||||
end sub
|
||||
|
|
Loading…
Reference in New Issue
Block a user