modify the size of complex control BorderLayout !

  1. #1

    modify the size of complex control BorderLayout !

    Hi

    I use the BorderLayout control Complex https://examples1.ext.net/#/Layout/B...in_CodeBehind/
    I want him to take the width and length of my web page!
    how I can apply a css style?!

    thank you answer me please
  2. #2
    Hi,

    Well, if you need an <ext:Window>, please set Maximized="true".

    If you don't really need to use an <ext:Window>, please use an <ext:Viewport>.
  3. #3
    Thank you for your answer, it worked well
    The problem is that I have a horizontal image at the top of my web page
    as the example site https://examples2.ext.net/
    window.Maximized = "true" hide my image?!
    here is my code main.aspx :
    <body>
        <form id="form1" runat="server">
           
     <ext:ResourceManager ID="ResourceManager1" runat="server" /> 
       <asp:PlaceHolder ID="PlaceHolder1" runat="server"/>
        
    <ext:Panel ID="header" IDMode="Ignore" runat="server" Header="false" Border="false" Html="<div id='header'><h1>My First Ext.NET Applcation</h1></div>" />   
       
     </form>
    </body>
  4. #4
    Yes, the purpose of Window.Maximized is to cover the whole window. This is the desired functionality.

    For your scenario, you should investigate configuring an <ext:Viewport>. In the <North> region, add your header image.

    Hope this helps.
    Geoffrey McGill
    Founder
  5. #5
    Thank you for your solutions :)
  6. #6

    add Treepanel in Viewport !

    Hi,
    I have a <ext:Viewport>, I want in the West Region add Treepanel, which contains several options
    when I click on an option, a tab opens in the Region Center of my ViewPort!
    I do not know how to do it ! :(
    I like to do something like this:
    http://extjs.yazilimarge.com/giris.aspx

    thank you
  7. #7
    The same thing you can see in our examples explorer:
    https://examples2.ext.net/

    You can investigate its sources, see the TreePanel's click listener.

    A more simple example how to add a tab is here:
    https://examples1.ext.net/#/TabPanel/Basic/Add_Tabs/

    To handle click on a node, please use the TreePanel's Click event.
    http://docs.sencha.com/ext-js/3-4/#!...el-event-click
  8. #8
    Thank you very much for your answer
    The second link helped me a lot :))))

Similar Threads

  1. [CLOSED] Image control automatic size (max control)
    By FAS in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 27, 2012, 7:52 AM
  2. [CLOSED] different size in control IE7 vs IE8, 9
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Sep 15, 2011, 12:20 PM
  3. [CLOSED] Borderlayout and panel size issue
    By yobnet in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 16, 2010, 2:02 PM
  4. Modify font-size in GridPanel
    By John_Writers in forum 1.x Help
    Replies: 0
    Last Post: Apr 28, 2010, 5:26 AM
  5. [CLOSED] BorderLayout.North size issue - something changed
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 08, 2009, 6:39 PM

Tags for this Thread

Posting Permissions