[CLOSED] Unable to get panel to fit to view port and scroll

  1. #1

    [CLOSED] Unable to get panel to fit to view port and scroll


    I have a master page that contains a viewport with a tab panel.

    The first tab panel contains an asp.net content control, "SettingsContent", which may be loaded with a number of asp.net controls.

    My problem is that this tab does not scroll when there are a lot of controls.


    
            <ext:Viewport ID="Viewport1" runat="server">
                <Items>
                    <ext:TabPanel ID="SettingsTabs" runat="server" Border="false" >
                        <TopBar>
                            <ext:Toolbar ID="SettingsToolbar" runat="server">
                                <Items>
                                        <DirectEvents><Check OnEvent="UseTemplateSettings_Check" /></DirectEvents>
                                    </ext:Checkbox>
                                    <ext:Button ID="SaveSettings" runat="server" Text="Save">
                                        <DirectEvents><Click OnEvent="Save_Click" Success="WindowManager.closeDialog(result.extraParamsResponse.data.evalJSON());" /></DirectEvents>
                                    </ext:Button>
                                    <ext:Button ID="CancelSettings" runat="server" Text="Cancel">
                                        <Listeners><Click Handler="WindowManager.closeDialog();"  /></Listeners>
                                    </ext:Button>
                                </Items>
                            </ext:Toolbar>
                        </TopBar>
                        <Items>
                            <ext:Panel Title="Settings" runat="server" ID="SettingsPanel" Border="false" AnchorVertical="100%">
                                <Content><asp:ContentPlaceHolder ID="SettingsContent" runat="server" /></Content>
                            </ext:Panel>
                            <ext:FormPanel Title="Publishing" runat="server" LabelWidth="130" Border="false">
                                <Items>
                                    
    ... Some EXT form fields
    
    
                                    <ext:CompositeField  ID="GroupsField" runat="server" LabelSeparator="" FieldLabel="Groups">
                                        <Items>
                                            <ext:Panel runat="server" Border="false">
                                                <Content>
                                                    
    ... An ASP.NET server control.
    
                                                </Content>
                                            </ext:Panel>
                                        </Items>                                                                        
                                    </ext:CompositeField>
                                </Items>
                            </ext:FormPanel>
                        </Items>
                    </ext:TabPanel>
                </Items>
  2. #2

    RE: [CLOSED] Unable to get panel to fit to view port and scroll

    Hi Labyrinth,

    Can you set AutoScroll="true" on your "SettingsPanel"?


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Unable to get panel to fit to view port and scroll

    AutoScroll didn't work so I removed it.

    I hae tried all sorts of combinations of nesting panels within others and different layouts and can't seam to come up with a combination that works.
  4. #4

    RE: [CLOSED] Unable to get panel to fit to view port and scroll

    Further investigation shows that the tab panel is not constrained to the size of the viewport. When I add AutoScroll to the viewport I get scrollbars (just not where I want them)

    So now the question is - how do I get the tab panel to fit to the ViewPort?
  5. #5

    RE: [CLOSED] Unable to get panel to fit to view port and scroll

    how do I get the tab panel to fit to the ViewPort?
    Set Layout="fit" on the Viewport.


    Geoffrey McGill
    Founder
  6. #6

    RE: [CLOSED] Unable to get panel to fit to view port and scroll

    I have wrapped the tab panel in a FitLayout and now I have the scroll bars where I want them.

    My structure is now:

    Viewport
    ----FitLayout
    --------TabPanel
  7. #7

    RE: [CLOSED] Unable to get panel to fit to view port and scroll

    Hi,

    It would be better to set Layout="fit" on the Viewport and remove the <ext:FitLayout> control.


    Either way it will work.


    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 1
    Last Post: Oct 26, 2012, 8:52 AM
  2. [CLOSED] Scroll Panel into view
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 09, 2012, 9:09 PM
  3. Tab Panel Under View Port
    By kiran malgi in forum 1.x Help
    Replies: 9
    Last Post: Mar 29, 2010, 9:42 AM
  4. Center layout in view port
    By speedstepmem4 in forum 1.x Help
    Replies: 1
    Last Post: Aug 24, 2009, 4:38 AM
  5. [CLOSED] View Port Layout
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 07, 2009, 10:52 AM

Posting Permissions