[CLOSED] BoxSplitter with Collapsible property set to false

  1. #1

    [CLOSED] BoxSplitter with Collapsible property set to false

    Hi Folks, note that the Collapsible property of BoxSplitter1 is set to false but the collapse trigger is still visible. It is just hidden if the Collapsible property of Panel2 is set to false.

    If think that if the Collapsible property is set to false the BoxSplitter shout act just as a Splitter.

    Thanks in advance

    <ext:Window ID="Window1" runat="server" Width="250" Height="500" Title="VBox">
        <LayoutConfig>
            <ext:VBoxLayoutConfig Align="Stretch" DefaultMargins="0" />
        </LayoutConfig>
        <Items>
            <ext:Panel ID="Panel1" runat="server" Region="Center" Flex="1" TitleCollapse="true"
                Collapsible="true" Title="Panel 1" Html="EXT.NET">
            </ext:Panel>
            <ext:BoxSplitter ID="BoxSplitter1" runat="server" Collapsible="false" CollapseTarget="Next" />
            <ext:Panel ID="Panel2" runat="server" Region="Center" Flex="1" TitleCollapse="true"
                Collapsible="true" Title="Panel 2" Html="EXT.NET">
            </ext:Panel>
        </Items>
    </ext:Window>
    Last edited by Daniil; Jun 06, 2012 at 4:41 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Please follow:
    http://docs.sencha.com/ext-js/4-1/#!...fg-collapsible

    It says
    Defaults to the collapsible setting of the Panel.
    So, the Panel Collapsible property prevails.
  3. #3
    If i set up BoxSplitter´s Collapsible to true and Panel´s Collapsible to false it´s possible to collapse the Panel by using the Splitter. So the Panel´s Collapsible does not prevail.

    In my conception the BoxSplitter should act accordingly the value of Collapsible property
  4. #4
    Going further, for me there is no need of BoxSplitter have the Collapsible property if the Panel´s property prevails.
  5. #5
    Quote Originally Posted by RCN View Post
    If i set up BoxSplitter´s Collapsible to true and Panel´s Collapsible to false it´s possible to collapse the Panel by using the Splitter. So the Panel´s Collapsible does not prevail.
    I was a bit wrong. The Panel Collapsible property prevails only if it's true.

    There is the following code within BoxSplitter.
    collapsible: me.collapsible || target.collapsible
    "me" is a BoxSplitter instance, "target" is a Panel instance.

    So, if either BoxSplitter Collapsible or Panel Collapsible is true, when the splitter will be collapsible. If both are false, then it will be not collapsible.
  6. #6
    ok, please mark it as resolved

Similar Threads

  1. [CLOSED] Bug when using a BoxReorderer with a BoxSplitter
    By RCN in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 06, 2012, 3:49 PM
  2. [CLOSED] Collapsible Panel problem
    By sailendra in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: May 18, 2012, 11:43 AM
  3. [CLOSED] Collapsible Toolbar
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 12, 2009, 11:11 AM
  4. Replies: 2
    Last Post: May 15, 2009, 10:21 AM
  5. Replies: 2
    Last Post: Mar 29, 2009, 3:20 PM

Posting Permissions