Hi Everyone

 

I've been trying to find a way to create a dynamic background image for
a Container that will scroll with the contents. In my case i actually
want to apply the background image to a Form. The background image in
question is simply alternating stripes. Since the FormItems are aligned
with the stripes it looks a bit dumb if they don't scroll with the
content. The FormItems are added by the user, so while the size of the
Form is fixed, the number of items is not. And therefore the amount of
scrolling (if at all) varies. So this is why an external fixed size
image file won't work.

 

I created a class that extends RectangularBorder and used this to set
the "borderSkin" Style of my Form. This creates the stripes that i want,
but they don't scroll. I tried setting the "backgroundImage" Style to
this class, but that seems to create an infinite loop and crashes my
browser.

 

If anyone has any thoughts or suggestions as to how i can achieve this
it would be great to hear them.

 

Thanks,

 

Charlie Skinner

 

Reply via email to