Skip to content

Commit

Permalink
Update API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jellyfin-bot committed Nov 10, 2024
1 parent 8a5714d commit 51a6a33
Showing 1 changed file with 22 additions and 10 deletions.
32 changes: 22 additions & 10 deletions docs/api/components_home_HomeRows.bs.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,30 @@
end sub

sub updateSize()
m.top.translation = [111, 180]
itemHeight = 330

'Set width of Rows to cut off at edge of Safe Zone
m.top.itemSize = [1703, itemHeight]
uiRowLayout = m.global.session.user.settings["ui.row.layout"]

if isValid(uiRowLayout)
if uiRowLayout = "fullwidth"
m.top.translation = [0, 180]
' rows take up full width of the screen
m.top.itemSize = [1920, 330]
' align with edge of "action" safe zone
m.top.focusXOffset = [96]
m.top.rowLabelOffset = [96, 20]
else
' original layout
m.top.translation = [111, 180]
m.top.itemSize = [1703, 330]
' reset to defaults
m.top.focusXOffset = []
m.top.rowLabelOffset = [0, 20]
end if
end if

' spacing between rows
m.top.itemSpacing = [0, 105]

' spacing between items in a row
m.top.rowItemSpacing = [20, 0]

' Default size to wide poster, the most used size
m.top.rowItemSize = homeRowItemSizes.WIDE_POSTER
m.top.rowItemSpacing = [21, 0]

m.top.visible = true
end sub
Expand Down Expand Up @@ -457,6 +467,8 @@
sub updateHomeRows()
' Hide the row counter to prevent flicker. We'll show it once loading timer fires
m.top.showRowCounter = [false]
m.top.visible = false
updateSize()
processUserSections()
end sub

Expand Down

0 comments on commit 51a6a33

Please sign in to comment.