1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    14
    Vote Rating
    0
    kuzynpiy is on a distinguished road

      0  

    Default splitter and onDblClick

    splitter and onDblClick


    Hello,

    Does anybody know how to make the splitter (horizontal or vertical) change the size to minsize automaticly when I double click on the splitter ?

    Ths in advance.
    --
    Peter

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    Assuming your splitter is called split.

    Code:
    split.el.on('dblclick', split.setCurrentSize.createDelegate(split, [split.minSize]));

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    14
    Vote Rating
    0
    kuzynpiy is on a distinguished road

      0  

    Default


    Hello,

    Thx for Your sugestion.

    I save localy Your site (http://www.jackslocum.com/yui/) and then add the code you write:
    split.el.on('dblclick', split.setCurrentSize.createDelegate(split, [150]));
    to blog.js in initUI function, just after the code:
    (...)
    var split = new YAHOO.ext.SplitBar('splitter', 'sidebar');
    split.setAdapter(new YAHOO.ext.SplitBar.AbsoluteLayoutAdapter('blogBody'));
    split.minSize = 150;
    split.maxSize = 400;
    split.animate = true;
    split.onMoved.subscribe(this.splitterMoved.createDelegate(this));
    (..)
    and it doesn't work. Maybe because the splitter divide the navbar and the main body of the site.

    I do not test the code You send with other splitters.

  4. #4
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      1  

    Default


    The problem there is my site responds to the splitters onMoved event and setCurrentSize doesn't trigger the event.

    Try this:

    Code:
    split.el.on('dblclick', function(){
         split.setCurrentSize(150);
         split.onMoved.fireDirect(split, 150);
    });

  5. #5
    Ext User
    Join Date
    Mar 2007
    Posts
    14
    Vote Rating
    0
    kuzynpiy is on a distinguished road

      0  

    Default


    Hey,

    That works perfectly. Thank You vary much indeed.

    Peter

  6. #6
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    No problem. Keep an eye on my site over the next couple days, I am getting ready to release something that will make a layout like my site (actually much better) automatic.

Similar Threads

  1. dimples missing in layout splitter for non-default themes
    By marvinhorst in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Feb 2007, 2:51 PM
  2. Splitter can be dragged out of the region
    By dbadke in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 23 Feb 2007, 3:35 PM
  3. ContentPanel & window resize / splitter resize
    By christocracy in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 23 Oct 2006, 7:51 PM

Thread Participants: 1

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