Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7904349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:01:07+00:00 2026-06-03T10:01:07+00:00

I have a global presenter that contains a Header Footer and the main content

  • 0

I have a global presenter that contains a Header Footer and the main content slots, when header always on the top, footer always on the bottom…

My question is: How can i add scroll bar to my Global Presenter?

I know that there were a lot of questions like this but i cant find the right answer for me.

I have UiBinder that has the code:

    <g:RootLayoutPanel width="100%" height="100%">
    <g:layer left="0px" right="0px" top="0px" bottom="0px">
        <g:DockLayoutPanel unit="EM">
            <g:north size="5.0">
                <g:HTMLPanel ui:field="headerContentPanel" />
            </g:north>
            <g:center size="1.0">
                <g:FlowPanel ui:field="mainContentPanel" />
            </g:center>
            <g:south size="1.5">
                <g:HTMLPanel ui:field="footerContentPanel" />
            </g:south>
        </g:DockLayoutPanel>
    </g:layer>
</g:RootLayoutPanel>

I have tried to add ScrollPanel that is contains the RootLayotPanel or other panels.. but than all the inner panel receive size zero.

I have tried to use a vertical panel inside the scrollPanel but than I can’t put the footer at the bottom.

Does someone has an answer?

==================================================================================

I succeeded to do it, here is my new code:

    <g:RootLayoutPanel width="100%" height="100%">
    <g:layer>

        <g:ScrollPanel width="100%" height="100%">
            <g:DockPanel width="100%" horizontalAlignment="ALIGN_CENTER" verticalAlignment="ALIGN_MIDDLE">
                <g:Dock direction="NORTH" >
                    <g:HTMLPanel ui:field="headerContentPanel" />
                </g:Dock>
                <g:Dock direction="CENTER" verticalAlignment="ALIGN_MIDDLE" horizontalAlignment="ALIGN_CENTER">
                    <g:FlowPanel ui:field="mainContentPanel" />
                </g:Dock>
                <g:Dock direction="SOUTH"  verticalAlignment="ALIGN_BOTTOM" horizontalAlignment="ALIGN_CENTER">
                    <g:HTMLPanel ui:field="footerContentPanel" />
                </g:Dock>
            </g:DockPanel>
        </g:ScrollPanel>

    </g:layer>
</g:RootLayoutPanel>

But I have small problem: my footer isn’t attached to bottom, no matter what i tried..
Does someone know the solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T10:01:08+00:00Added an answer on June 3, 2026 at 10:01 am

    Layout Panels do not work properly in scroll panels. But scoll panels can be used in Layout Panels:
    For example to scrolling the center part:

        <g:DockLayoutPanel unit="EM">
            <g:north size="5.0">
                <g:HTMLPanel ui:field="headerContentPanel" />
            </g:north>
            <g:center size="1.0">
    
              <g:ScrollPanel>
                <g:FlowPanel ui:field="mainContentPanel" />
              </g:ScrollPanel>
    
            </g:center>
            <g:south size="1.5">
                <g:HTMLPanel ui:field="footerContentPanel" />
            </g:south>
        </g:DockLayoutPanel>
    

    Another possibility is to use DockPanel instead Layout Panels.

    If the header included in the scroll bar :

    <g:ScrollPanel>   
       <g:DockPanel>
          <g:Dock direction="NORTH" height="100px">
              <g:HTMLPanel ui:field="headerContentPanel" />
          </g:Dock>
          <g:Dock direction="CENTER">
              <g:FlowPanel ui:field="mainContentPanel" />
          </g:Dock>
          <g:Dock direction="SOUTH" height="100px">
              <g:HTMLPanel ui:field="footerContentPanel" />
          </g:Dock>
      </g:DockPanel> 
    </g:ScrollPanel>
    

    And then put this in RootLayoutPanel or RootPanel


    Or use DockPanel in Layout Panels.
    For example: we want to have scrollable header and center part, but west panel and bottom always in view:

    <g:DockLayoutPanel width="100%">
      <g:west size="100.0">
         <g:Label>West side </g:Label>
      </g:west>
      <g:center>
         <g:ScrollPanel>   
            <g:DockPanel>
              <g:Dock direction="NORTH" height="100px">
                <g:HTMLPanel ui:field="headerContentPanel" />
              </g:Dock>
              <g:Dock direction="CENTER">
                <g:FlowPanel ui:field="mainContentPanel" />
              </g:Dock>
            </g:DockPanel> 
         </g:ScrollPanel>
      </g:center>
      <g:south size="50">
         <g:HTMLPanel ui:field="footerContentPanel" />
      </g:south >
    </g:DockLayoutPanel>
    

    And then put this in RootLayoutPanel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a global header and footer that has a Database connection and a
I have a page in SharePoint that contains both a local and global content.
In Actionscript you can have global variables like this: var number : Number =
Can Dynamic libraries have global, local and static variables in linux? If yes, then
If i have global variable in A.dll, that depends on global variable in B.dll
I have a global variable averagel that I am trying to manipulate in a
I have a global variable that is an instance of my custom class. How
I have a dialplan that contains the IVR flow for a number of applications,
I have a Presenter that takes a Service and a View Contract as parameters
I have global static variables in a C library, which generate exceptions in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.