Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Aug 2009
    Location
    Tamworth, NSW, Australia
    Posts
    32
    Vote Rating
    0
    mfearby is on a distinguished road

      0  

    Question items within collapsible border layout always visible

    items within collapsible border layout always visible


    For some time this has been bugging me but I've been getting by (it's an app for my own use) but I just can't seem to get items within the East border layout to collapse with the region itself when I hide it. I've stripped all the unnecessary stuff so that the attached HTML is a working stand-alone example of my problem. I've also commented out an attempt at fixing the problem (which was unsuccessful). Can anybody see what I've done wrong?

    Thanks. I'm using Sencha 3.2.1
    Attached Files

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You have duplicate ids (e.g. searchpanel). Ids need to be unique!

    ps. Wouldn't it be easier to use:
    Code:
    {
        region: 'north',
        id: 'searchform',
        height: 50,
        xtype: 'form',
        labelWidth: 30,
        items: [{
            fieldLabel: 'L:',
            anchor: '0',
            xtype: 'combo',
            ...
        },{
            fieldLabel: 'R:',
            anchor: '0',
            xtype: 'combo'
            ...
        }]
    }

  3. #3
    Sencha User
    Join Date
    Aug 2009
    Location
    Tamworth, NSW, Australia
    Posts
    32
    Vote Rating
    0
    mfearby is on a distinguished road

      0  

    Default


    Thanks, Condor. That has solved my problem. Can't believe I missed that one. Most of my really annoying problems have usually turned out to be silly mistakes.

    Also, I'm using a column layout for the field labels and combo boxes so that half of the area isn't wasted with needless white space between the short label and the combo box.

    Thanks again.

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    That is what 'labelWidth' is for!

  5. #5
    Sencha User
    Join Date
    Aug 2009
    Location
    Tamworth, NSW, Australia
    Posts
    32
    Vote Rating
    0
    mfearby is on a distinguished road

      0  

    Default


    Thanks. Hadn't seen labelWidth before (I'm new to Sencha, and one thing I'm discovering is that it's big!). I tried this but still can't get my tiny label to appear centred using some CSS as before:
    Code:
    xtype: 'form',
    labelWidth: 15,
    labelStyle: 'margin-left: 6px;',
    items: [{
        fieldLabel: 'L',
        anchor: '0',
        xtype: 'combo',
    }
    I'm happy with what I've got so far. My way of centring the label might be nasty but it looks right on screen :-)

    Thanks for your help.

  6. #6
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    That labelStyle is weird. Don't you want padding on the whole form instead?

    ps. Do you really want to label centered? Usually people only want them aligned left or right (see labelAlign).

  7. #7
    Sencha User
    Join Date
    Aug 2009
    Location
    Tamworth, NSW, Australia
    Posts
    32
    Vote Rating
    0
    mfearby is on a distinguished road

      0  

    Default


    It's not necessarily that I want the label centred but I do want it to be not right up against the splitter to the left, but since I want the two search combo boxes (one to look up Latin words, the other English, by the way) to take up the maximum space possible, I don't want to go with a general padding setting. As each word is found I click on the auto-completed item below the combo and it gets added to the grid below. Just makes finding words easier, and screen real-estate is at a premium :-)

    Thanks.

  8. #8
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    82
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    You probably want 6px both left and right, so I would recommend:
    Code:
    labelWidth: 15,
    bodyStyle: 'padding: 0 6px;'
    ps. To save space you could even set labelPad:0.

Similar Threads

  1. [OPEN-770] vbox layout with collapsible items
    By vladsch in forum Ext 3.x: Bugs
    Replies: 11
    Last Post: 12 Aug 2010, 12:08 PM
  2. How to make the tab panel collapsible in border layout
    By santosh_bdp in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 13 Apr 2010, 8:41 AM
  3. Replies: 2
    Last Post: 5 Apr 2010, 7:11 PM
  4. IE6 border-bottom in layout-browser's start-div is not visible
    By sb32 in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 23 Nov 2009, 11:23 AM
  5. Collapsible Border Layout
    By neenhouse in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Dec 2007, 10:10 AM

Thread Participants: 1

Tags for this Thread