something strange with scrollwidth property of the newScrollView v.2.0

hello again!

I noticed something very strange with scrollwidth property. I had a scrollview element implemented with wiget v.1.0 , in that scrollview i set scrollwidth=1180 . I tried to implement the same scrollview with widget v.2.0, i noticed that the right scrollwidth value now was changed to 860… there are exactly 320px not needed now… i suppose these pixels are pointing to contentWidth…Am i right?? Is scrollwidth property now point to added width on contentWidth??

thanks, in advance! [import]uid: 185094 topic_id: 36317 reply_id: 336317[/import]

The scrollWidth/Height values are the exact size of the overall content area of your scrollView.

For instance:

You have one image inserted into a scrollView that is 1024 x 1024. Your scrollWidth and height should be set to:

scrollWidth = 1024,
scrollHeight = 1024,

Does that make sense? [import]uid: 84637 topic_id: 36317 reply_id: 144281[/import]

ok… it makes sense… but what if i have inserted 8 images with 136px width / 208px height , this means 8x136=1088 + 10px space between of each image(80px space in summary) => 1088+80=1168px…

but my program now can run proper with only 860px set on scrollwidth… Dont you think this is very strange?? it should require 1168… [import]uid: 185094 topic_id: 36317 reply_id: 144400[/import]

Hey Bvagdas.

Yes that doesn’t sound right, this is just an issue with scrollWidth and not scrollHeight right? I will take a look at this today for you. [import]uid: 84637 topic_id: 36317 reply_id: 144402[/import]

yes… it’s just with scrollwidth… thanks again!! [import]uid: 185094 topic_id: 36317 reply_id: 144403[/import]

The scrollWidth/Height values are the exact size of the overall content area of your scrollView.

For instance:

You have one image inserted into a scrollView that is 1024 x 1024. Your scrollWidth and height should be set to:

scrollWidth = 1024,
scrollHeight = 1024,

Does that make sense? [import]uid: 84637 topic_id: 36317 reply_id: 144281[/import]

ok… it makes sense… but what if i have inserted 8 images with 136px width / 208px height , this means 8x136=1088 + 10px space between of each image(80px space in summary) => 1088+80=1168px…

but my program now can run proper with only 860px set on scrollwidth… Dont you think this is very strange?? it should require 1168… [import]uid: 185094 topic_id: 36317 reply_id: 144400[/import]

Hey Bvagdas.

Yes that doesn’t sound right, this is just an issue with scrollWidth and not scrollHeight right? I will take a look at this today for you. [import]uid: 84637 topic_id: 36317 reply_id: 144402[/import]

yes… it’s just with scrollwidth… thanks again!! [import]uid: 185094 topic_id: 36317 reply_id: 144403[/import]

The scrollWidth/Height values are the exact size of the overall content area of your scrollView.

For instance:

You have one image inserted into a scrollView that is 1024 x 1024. Your scrollWidth and height should be set to:

scrollWidth = 1024,
scrollHeight = 1024,

Does that make sense? [import]uid: 84637 topic_id: 36317 reply_id: 144281[/import]

ok… it makes sense… but what if i have inserted 8 images with 136px width / 208px height , this means 8x136=1088 + 10px space between of each image(80px space in summary) => 1088+80=1168px…

but my program now can run proper with only 860px set on scrollwidth… Dont you think this is very strange?? it should require 1168… [import]uid: 185094 topic_id: 36317 reply_id: 144400[/import]

Hey Bvagdas.

Yes that doesn’t sound right, this is just an issue with scrollWidth and not scrollHeight right? I will take a look at this today for you. [import]uid: 84637 topic_id: 36317 reply_id: 144402[/import]

yes… it’s just with scrollwidth… thanks again!! [import]uid: 185094 topic_id: 36317 reply_id: 144403[/import]

The scrollWidth/Height values are the exact size of the overall content area of your scrollView.

For instance:

You have one image inserted into a scrollView that is 1024 x 1024. Your scrollWidth and height should be set to:

scrollWidth = 1024,
scrollHeight = 1024,

Does that make sense? [import]uid: 84637 topic_id: 36317 reply_id: 144281[/import]

ok… it makes sense… but what if i have inserted 8 images with 136px width / 208px height , this means 8x136=1088 + 10px space between of each image(80px space in summary) => 1088+80=1168px…

but my program now can run proper with only 860px set on scrollwidth… Dont you think this is very strange?? it should require 1168… [import]uid: 185094 topic_id: 36317 reply_id: 144400[/import]

Hey Bvagdas.

Yes that doesn’t sound right, this is just an issue with scrollWidth and not scrollHeight right? I will take a look at this today for you. [import]uid: 84637 topic_id: 36317 reply_id: 144402[/import]

yes… it’s just with scrollwidth… thanks again!! [import]uid: 185094 topic_id: 36317 reply_id: 144403[/import]