Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to make Layout background image scroll

    1. SmartClient Version: v8.3p_2012-12-08/Pro Deployment (built 2012-12-08)

    2. Firefox v15.0

    I have a VLayout with a number of HLayouts, but when I put a background image on the VLayout it doesn't scroll together with the HLayouts.

    Is there any way to make it do this?

    Code:
    VLayout vTest = new VLayout(20);
    vTest.setHeight(100);
    vTest.setOverflow(Overflow.AUTO);
    vTest.setBackgroundImage("backlogBG.png");
    vTest.setBackgroundRepeat(BackgroundRepeat.REPEAT);
    		
    HLayout hTest1 = new HLayout();
    hTest1.setBackgroundColor("blue");
    hTest1.setHeight(50);
    hTest1.setWidth("50%");
    		
    HLayout hTest2 = new HLayout();
    hTest2.setBackgroundColor("red");
    hTest2.setHeight(50);
    hTest2.setWidth("50%");
    		
    HLayout hTest3 = new HLayout();
    hTest3.setBackgroundColor("yellow");
    hTest3.setHeight(50);
    hTest3.setWidth("50%");
    		
    HLayout hTest4 = new HLayout();
    hTest4.setBackgroundColor("green");
    hTest4.setHeight(50);
    hTest4.setWidth("50%");
    
    vTest.setMembers(hTest1, hTest2, hTest3, hTest4);
    /Futtegud

    #2
    Please let me know if you need any more information to answer this.

    /Futtegud

    Comment


      #3
      Does anyone have an answer for this?

      Comment

      Working...
      X