So here is the thing. I have made a gallery with xml, and my problem is that when the thumbnails are loaded they move on the Y axis and doesn't want to be in their original placed position. I am attaching a zip with my problematic sample to see what i mean.
and if you have seen my problem how to set space between the thumbs?
i fixed it..
What do you mean by "they move on the y-axis and doesn't want to be in their original placed position". I don't know what your original placed position is. One thing i have noticed is that you are using "Math.floor" in thumbclip._y = Math.floor(n / 2) * 75; which results in zero for n = 0 and n = 1 and the Math.floor of any decimal value is rounded down so when n = 1 it results in 0.5 and the Math.floor(0.5) is zero.