So, I'm getting closer and closer to finishing my sudoku app, but came across an issue. I feel like it's an easy fix, but I've been starting at it for a couple of hours and I just can't see anything with it

I've got it set up to take a screenshot of each sudoku that the user makes, so when the user goes to load it, they can see each of the sudokus and figure out which one they want to work on next.
My idea was to create images on the fly for each sudoku (working perfectly), and then to group all the pictures and create a native mobile scroller so users can scroll through the save files they have. This is the code I have, boiled down:
Code: Select all
on LoadSaves
-- delete all images first
-- have a repeat that sets the dimensions of the picture, the filename, and create it using this code:
create image ("Save"&i) in group "ScrollGroup" -- at this point I have 2 columns of saved sudokus, starting in the top left, then top right, then next row and so on
-- setting the height and location of the group
put the rect of group "ScrollGroup" into ScrollRect
put 0,0,(the formattedWidth of group "ScrollGroup"),(the formattedHeight of group "ScrollGroup") into ContentRect
if the environment is "mobile" then
mobileControlCreate "scroller", "ScrollGroup"
mobileControlSet "ScrollGroup", "rect", ScrollRect
mobileControlSet "ScrollGroup", "contentRect", ContentRect
mobileControlSet "ScrollGroup", "visible", true
mobileControlSet "ScrollGroup", "scrollingEnabled", true
mobileControlSet "ScrollGroup", "vIndicator", true
mobileControlSet "ScrollGroup", "hIndicator", false
mobileControlSet "ScrollGroup", "vscroll", 0
end if
end LoadSaves
on scrollerDidScroll hOffset, vOffset
set the vScroll of group "ScrollGroup" to vOffset
end scrollerDidScroll
Code: Select all
go to card "SavesList"
send "LoadSaves" to card "SavesList"

As you can see, the scrollbar is at the top, but there's all this extra space that's appeared there, and at the bottom, it's cut off by the same amount, so you can't scroll all the way down. And to make it more annoying, it only happens sometimes, so I can't figure out what's going on with it!
Does anyone know what causes this or how to fix it? As I said, it's probably something super simple, but for the life of me I just can't see what's wrong with it!
Thanks in advanced!