Announcement

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

    Make an HLayout that never leaves the bottom of the screen?

    I'm wondering if I'm asking too much of the layout mechanism but I want to have an hlayout that is always on the screen at the bottom of the browser even when scrolling. So I scroll down this layout is still at the bottom of the screen, then I scroll up this layout can still be seen in full at the bottom of the screen.

    Has anybody attempted to do this before or know if it is possible?

    #2
    One thing you can do to simulate this behavior, is creating a window, setting it as a child of the main layout (Canvas.addChild()), and snapping it to bottom:
    Code:
                    Window upw;
                    Layout rootLayut;
                    rootLayout.addChild(upw);
                    upw.setSnapOffsetLeft(-6);
                    upw.setSnapOffsetTop(-6 );
                    // means Bottom/Right, check docs
                    upw.setSnapTo("BR");
    also, you can set certain properties on the window (adjust to suit your needs), to make it look just like a regular canvas:

    Code:
            upw.setHeight(50);
            upw.setWidth100();
            upw.setShowHeader(false);
            upw.setScrollbarSize(0);
            upw.setShowHeaderBackground(false);
            upw.setBackgroundColor("white");
            upw.setCanDrag(false);
            upw.setCanDragReposition(false);
            upw.setShowEdges(false);
    hope this helps,
    Andrius J.

    Comment


      #3
      I actually after I posted the message tried this and it seems to work well for what I want. Not sure if it was meant to be used for layout but I used a SectionStack() then put 2 layouts inside of it. the first is my normal page without the header of the section and scrollable and the second is the thing I wanted to stick to the bottom of the page. It's actually working out better than I anticipated because I can minimize the second section.

      Comment

      Working...
      X