[CLOSED] Move the BorderLayout Region Collapse button to the left side of the panel, rather than the right?

  1. #1

    [CLOSED] Move the BorderLayout Region Collapse button to the left side of the panel, rather than the right?

    Hello all,

    I have a very simple question. I have a BorderLayout with a collapsible South region. For aethsetic purposes, I would like to have the button that collapses/shows the region on the left side of the title of the panel, rather than the right. Is this possible?

    Thank you,

    David
    Last edited by Daniil; Oct 21, 2011 at 4:47 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Yes, it's possible adding a respective css rule, please see the example.

    Example

    <%@ Page Language="C#" %>
    
    <%@ 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 runat="server">
        <title>Ext.Net Example</title>
    
        <style type="text/css">
            .tool-align .x-tool {
                float: left;
            }
        </style>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Container 
                runat="server" 
                Width="200" 
                Height="200" 
                Layout="BorderLayout">
                <Items>
                    <ext:Panel runat="server" Region="Center" />
                    <ext:Panel 
                        runat="server" 
                        Region="South" 
                        Height="100" 
                        Collapsible="true" 
                        Cls="tool-align" />
                </Items>
            </ext:Container>
        </form>
    </body>
    </html>
  3. #3
    Hi Daniil ,

    Thank you for the response. One last question - would it possible to override the "Floatable" behavior of the South region and have it act like the "Expand" button was clicked. So rather than "Float" the panel, it would Expand it?

    Thanks,

    David
  4. #4
    Please start a new forum thread.
  5. #5
    You got it. You can close this one as you've solved my problem perfectly.

Similar Threads

  1. Replies: 1
    Last Post: Dec 12, 2011, 12:50 AM
  2. [CLOSED] Move a window to the left with constrainHeader = true
    By softmachine2011 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 01, 2011, 10:43 AM
  3. [CLOSED] Panel: How to hide the Collapse/Expand (+ and -) button?
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Oct 21, 2011, 2:45 AM
  4. Region Collapse Question
    By rnachman in forum 1.x Help
    Replies: 0
    Last Post: Jan 28, 2011, 4:50 PM
  5. [EXAMPLE] BorderLayout with image on Collapsed Region
    By geoffrey.mcgill in forum Examples and Extras
    Replies: 0
    Last Post: Oct 07, 2008, 1:13 PM

Posting Permissions