[CLOSED] Minimum size of a page

Page 5 of 5 FirstFirst ... 345
  1. #41
    Quote Originally Posted by Daniil View Post
    Repeat myself - re-rendering from server-side using .Render() method.

    Some points.

    1. You will not get scrollbars for Viewport at all.
    2. It's possible to get scrollbars for Panel on resize - I've provide you some working example.
    I would like to have the only bar in the viewport. And use the structure below.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BarraRolagem950.aspx.cs"
        Inherits="WebApplication1.WebForm3" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
    </head>
    <script type="text/javascript">
        var onResize = function () {
            Container1.setAutoScroll(this.getWidth() < 950);
        }
    </script>
    <body>
        <form id="frmSutPrt00" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server">
        </ext:ResourceManager>
        <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
            <Items>
                <ext:Container ID="Container1" runat="server" Region="Center" AutoScroll="true">
                    <Items>
                        <ext:BorderLayout ID="BorderLayout1" runat="server">
                            <North Split="true" MarginsSummary="5 5 0 5" MinHeight="73px" MaxHeight="73px">
                                <ext:Panel ID="Panel1" runat="server" MinHeight="73px" MaxHeight="73px" Height="73px"
                                    Cls="CssExtPainelTop">
                                    <Content>
                                        <div class="divFundoMenu1">
                                        </div>
                                        <div class="divFundoMenu2">
                                        </div>
                                        <div class="divLogoMenu">
                                        </div>
                                    </Content>
                                </ext:Panel>
                            </North>
                            <West Collapsible="true" Split="true" MinHeight="210px" MinWidth="130px" MaxWidth="500px"
                                MarginsSummary="0 0 5 5" CMarginsSummary="5 5 5 5" UseSplitTips="True" ExpandableSplitTip="Exibe o painel lateral"
                                SplitTip="Splitxxx" CollapsibleSplitTip="Altera largura do painel lateral">
                                <ext:Panel ID="pnlMenu2" runat="server" Title="" MinHeight="200px" MinWidth="130px"
                                    Cls="CssExtPainelMenuTreeView" MaxWidth="500px" Width="184px">
                                    <Items>
                                    </Items>
                                </ext:Panel>
                            </West>
                            <Center MarginsSummary="0 5 5 0">
                                <ext:TabPanel ID="TabPanelPages" runat="server" EnableTabScroll="true" Cls="CssExtTabPages"
                                    MinHeight="240px" LabelPad="5" HideMode="Offsets">
                                    <Items>
                                    </Items>
                                </ext:TabPanel>
                            </Center>
                        </ext:BorderLayout>
                    </Items>
                    <Listeners>
                        <Resize Fn="onResize" />
                    </Listeners>
                </ext:Container>
            </Items>
        </ext:Viewport>
        </form>
    </body>
    </html>
  2. #42
    Quote Originally Posted by majunior View Post
    I would like to have the only bar in the viewport.
    I'm afraid it's impossible.
Page 5 of 5 FirstFirst ... 345

Similar Threads

  1. [CLOSED] ext:GridPanel: Calculated page size
    By supera in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 27, 2012, 4:13 PM
  2. [CLOSED] Huge page size from comboboxes
    By jchau in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 15, 2012, 9:52 PM
  3. [CLOSED] PagingToolbar - save page size
    By pj_martins in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 19, 2011, 7:27 PM
  4. [CLOSED] How Can I get the page size that is loaded from a panel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 03, 2010, 1:30 PM
  5. [CLOSED] page size selector
    By alexp in forum 1.x Help
    Replies: 2
    Last Post: Nov 24, 2008, 10:36 AM

Posting Permissions