Skip to content

Commit

Permalink
wait until we have data from itemGrid to set itemText visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Sep 26, 2024
1 parent bc0445e commit a24df3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ItemGrid/GridItem.bs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ sub init()
m.checkmark.width = 90
m.checkmark.height = 60

m.itemText.translation = [0, m.itemPoster.height + 7]
m.itemText.visible = m.gridTitles = "showalways"

' Add some padding space when Item Titles are always showing
if m.itemText.visible then m.itemText.maxWidth = 250

Expand All @@ -38,6 +35,9 @@ sub init()
end if
end if

m.itemText.translation = [0, m.itemPoster.height + 7]
m.itemText.visible = m.gridTitles = "showalways"

end sub

sub itemContentChanged()
Expand Down

0 comments on commit a24df3d

Please sign in to comment.