Skip to main content
January 23, 2010
Question

XML Gallery Problem

  • January 23, 2010
  • 2 replies
  • 228 views

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.

This topic has been closed for replies.

2 replies

Inspiring
January 27, 2010

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.

January 23, 2010

and if you have seen my problem how to set space between the thumbs?

i fixed it..