Not too shy to talk
Joined: 2008/1/8 15:28 Last Login
: 2023/11/24 9:56
From Dublin/Glasgow
Group:
Registered Users
|
Are you using float variables for dividing up your space? Maybe you've got a float/integer issue here, meaning that fractions of your elements are being forgotten...
185 pixels is fine, 100 elements in your list means though that you should have the scroll bar divided into 1.85 pixels per element, not 8.5. If you round that 1.85, it's a pretty large error indeed. If you do it this way, you should keep everything in floating point format for everything, and only round when it comes to the actual rendering of pixels. That way the error is only a maximum of 1 pixel, which you can account for separately.
|