Fix scrollbar

This commit is contained in:
nutbuster 2021-07-11 13:56:42 +10:00
parent 8c307865af
commit 83e4d77249

View file

@ -51,7 +51,7 @@ init python:
return NOT_UNLOCKED_COVER
scaleFactor = getBoxNormalizerRatio(w, h)
return im.FactorScale("images/cgs/" + fname + "." + ext, scaleFactor["x"], scaleFactor["y"])
return im.FactorScale("images/cgs/" + fname + "." + ext, scaleFactor["x"], scaleFactor["y"], False)
# Create an object in g:Gallery, add to galleryItems
# (imageName: string; ext: string; w: float; h: float; unlocked?: boolean) -> None
@ -136,12 +136,8 @@ screen cg_gallery():
items = len(galleryItems)
galleryRows = (items / GALLERY_COLS) + 1
extraSpaces = GALLERY_COLS - (items % GALLERY_COLS)
print items
print galleryRows
print extraSpaces
tag menu
use game_menu(_("Gallery"), scroll="viewport"):
fixed:
grid GALLERY_COLS galleryRows:
spacing 20
for item in galleryItems: