1. #1
    Ext GWT Premium Member
    Join Date
    Jan 2010
    Posts
    74
    Vote Rating
    0
    bobpardoe is on a distinguished road

      0  

    Default BorderLayout - Setting header when collapsed does not change header text

    BorderLayout - Setting header when collapsed does not change header text


    The setting of the header of a border layout region i.e. south.setHeading("header text") does not work if the region is collapsed.

    The header is correctly displayed when it is later expanded.

    It would be good if you would fix this as I don't want to have to expand the region just to sets it's header correctly

    Thanks

    BOb

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    There is no workaround for this. You need to do something like this:

    Code:
    south.setHeading("header text") 
    south.<CollapsePanel>getData("collapse").el().selectNode(".x-panel-header-text").update(south.getHeading());

Similar Threads

  1. setting gridpanel header align
    By emredagli in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 14 Jun 2010, 4:33 AM
  2. Floating panel: Detect collapsed row header click
    By randomuser01 in forum Ext 2.x: Help & Discussion
    Replies: 8
    Last Post: 8 Oct 2008, 7:06 AM
  3. Title/header of a collapsed panel in borderlayout possible?
    By mkh100 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 9 Apr 2008, 2:15 PM
  4. Tooltip on Collapsed Header?
    By jeffwood in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 1 Nov 2006, 9:57 PM

Thread Participants: 1