Scrollview scrollWidth & scrollHeight are ignored

Hi,

I’ve got a scrollview without a mask [fills the screen].
It’s got an image added to it, which is used as a scrollable background.

I don’t want user to be able to see black background when they scroll to the edge and use this “rubber band” feature of scrollview, which cannot be disabled.
So I’ve scaled the background to be twice as big to extend to the left and to the right [horizontal scroll].
It’s all good when it comes to the left side, it’s impossible to see the black background when pulling content to the side… however…
To the right, everything is screwed up. ScrollviewWidth is extended as much as the “background” is larger then what I specified as scrollviewWidth when creating the scrollview.

Obviously this is not acceptable and looks horrible.

Is there any way to “fix” this? [import]uid: 109453 topic_id: 33512 reply_id: 333512[/import]

So…it sounds like what you’ve done is:

  1. Create an image and insert it into the scrollView, so that it acts as a scrolling background (basically, you don’t want a static background image)
  2. Make it bigger than the scrollView extents so that you can’t see beyond it (which means you want to allow some amount of horizontal scrolling?)

Is that about right?

Off the top of my head if you wanted to disable horizontal scrolling that would fix this issue, as would if you wanted to use a static background. Apart from that all I can say is to start troubleshooting:

(a) See if there are undocumented leftPadding rightPadding variables (that would be an obvious feature request and bugfile)
(b) See if the same thing is happening on downScroll but not on upScroll (that would indicate both width and height fail in some situations)

Covering those bases would probably get a lot more traction since you’ve covered the angles on what the problem could be. [import]uid: 41884 topic_id: 33512 reply_id: 133236[/import]

So…it sounds like what you’ve done is:

  1. Create an image and insert it into the scrollView, so that it acts as a scrolling background (basically, you don’t want a static background image)
  2. Make it bigger than the scrollView extents so that you can’t see beyond it (which means you want to allow some amount of horizontal scrolling?)

Is that about right?

Off the top of my head if you wanted to disable horizontal scrolling that would fix this issue, as would if you wanted to use a static background. Apart from that all I can say is to start troubleshooting:

(a) See if there are undocumented leftPadding rightPadding variables (that would be an obvious feature request and bugfile)
(b) See if the same thing is happening on downScroll but not on upScroll (that would indicate both width and height fail in some situations)

Covering those bases would probably get a lot more traction since you’ve covered the angles on what the problem could be. [import]uid: 41884 topic_id: 33512 reply_id: 133236[/import]