Dynamic srollarea problem

  • Hi,

    I have a problem with a scrollarea created dynamically in a container, all in another container.

    It's for a sliding and drop-down menu. I don't see the parameter(s) that cause it to crash.
    It also flickers sometimes.

    Without the scroll everything is fluid but I can't see my entire submenu with the height of the layer I chose....

    All this for the "Canal du Centre" in the end.

    Note that in the scrollarea an arrow is supposed to be clearly visible and allows you to return to the main menu. We only see a small bit of it at the top right.
    I also have trouble setting it

    The project : https://multimedia.damienlachas.com/barrage_reservoir_360/

    Layers

    Style of layers in scrollarea

    Code
    <style name="styleTitreCanal" type="text" parent="navCanal" visible="true" keep="true" zorder="100" enabled="true" alpha="1" scale="1.0" autowidth="true" padding="10"  vcenter="true" wordwrap="false" handcursor="true"  bgcapture="true" capture="true" align="topleft" edge="topleft" x="10" height="25" bg="true" bgalpha="0.0" bgborder="0"  mergedalpha="true"    onloaded="tween(alpha, 1);" 
    css="font-family:Raleway; font-size:18px; text-align: left; color:0xffffff;" 
    onover="set(css, font-family:Raleway; font-size:18px; text-align: left; color:0xbcff3c;);"
    onout="set(css, font-family:Raleway; font-size:18px; text-align: left; color:0xffffff; );" />
    
    <style name="styleListeBarrage" type="text" visible="true" keep="true" zorder="100" enabled="true" alpha="1" scale="1.0" scaley="1" autowidth="true"  padding="10"  vcenter="true" wordwrap="false" handcursor="true"  bgcapture="true" capture="true" align="topleft" edge="topleft" x="10"  height="40" bg="true" bgalpha="0.0" bgborder="0" bgroundedge="0" mergedalpha="true"  onloaded="tween(alpha, 1);"
    css="font-family:Raleway; font-size:18px; text-align: left; color:0xffffff;" 
    onover="set(css, font-family:Raleway; font-size:18px; text-align: left; color:0xbcff3c;);"
    onout="set(css, font-family:Raleway; font-size:18px; text-align: left; color:0xffffff; );"  />


    Function


    I hope i'am clear ... and that I have given enough elements

    Thanks for your help,

    Damien

  • Hi,

    It seems the align="right" at the scrollarea causes the scrolling problems (although I have to admit I'm not sure yet why exactly).

    Attached here a modified interface.xml - it fixes the scrolling problems, additionally I have put a container around the scrollarea and moved the title and the return arrow outside the scrollarea:

    interface.xml

    Best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!