1. #1
    Ext Premium Member
    Join Date
    May 2010
    Posts
    21
    Vote Rating
    0
    DanWhite is on a distinguished road

      0  

    Post BorderLayout and ContentPanel improvements

    BorderLayout and ContentPanel improvements


    Hi,

    Could I suggest some improvements to BorderLayout and ContentPanel? If these are things that are already possible and I've just missed them, could you point out where I've gone wrong too

    In BorderLayout, the method that creates the CollapsePanel for a region is private meaning there is no way to hook into the CollapsePanel creation. We would like to add some formatting to certain collapsed regions (logos mostly) and the only work around I've found is to listen for the collapse event of the panel and then use panel.getData("collapse") to access the panel so we can assign a CSS class to it. This seems like a bit of a hack...

    I've used a similar work around to implement a behaviour so that the popup version of the hidden panel displays if you hover the mouse over the collapsed panel.

    Next, it would be good to be able to animate the expanding/collapsing of the border layout regions - it seems like this should be supported but it isn't?

    Another behaviour I would like is to have a collapsed panel's popup fade into view when it is revealed - but to get at the CollapsePanel's popup variable (to listen for show events) I basically have to re-implement the class or edit its source directly because the popup variable is private and there is no accessor method. I'm against that idea because it makes it such a pain to re-integrate with new versions of the GXT library...

    So, nothing too serious I hope, just some niggles as I approach the limits of what the API currently allows. Any thoughts?

    Dan.

  2. #2
    Software Architect
    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


    Next, it would be good to be able to animate the expanding/collapsing of the border layout regions - it seems like this should be supported but it isn't?
    The current way how borderlayout works cannot support this. We will look into this for GXT3
    In BorderLayout, the method that creates the CollapsePanel for a region is private meaning there is no way to hook into the CollapsePanel creation.
    I will change it to protected for GXT 2.2.1

    Another behaviour I would like is to have a collapsed panel's popup fade into view when it is revealed - but to get at the CollapsePanel's popup variable (to listen for show events) I basically have to re-implement the class or edit its source directly because the popup variable is private and there is no accessor method.
    You can use JSNI to access private stuff. But i also will change this to protected.

  3. #3
    Ext Premium Member
    Join Date
    May 2010
    Posts
    21
    Vote Rating
    0
    DanWhite is on a distinguished road

      0  

    Default


    Thanks Sven!

  4. #4
    Software Architect
    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


    Change is in SVN as of revision 2240

Similar Threads

  1. moving contentPanel from center borderlayout region to west borderlayout region
    By qwerty_qwerty in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 29 May 2008, 10:27 AM
  2. Add a BorderLayout into ContentPanel
    By alexswim in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 3 Nov 2007, 12:26 AM
  3. About setup Borderlayout and ContentPanel?
    By franklt69 in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 19 Dec 2006, 5:34 PM
  4. BorderLayout Contentpanel
    By pomata in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 6 Dec 2006, 7:29 PM
  5. BorderLayout ContentPanel body height
    By pomata in forum Ext 1.x: Bugs
    Replies: 0
    Last Post: 30 Nov 2006, 6:24 PM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi