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
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default Animation Direction

    Animation Direction


    I am using this function

    cBox.setSize(imgSize.width,imgSize.height,true);

    is there a way to tell the animation which direction to do.

    What my problem is is that the box that expands that sits on the right side of the page will expand the window and cause to you have to scroll right to see it.

    i basicly want to anchor it to the top right and have it expand out to the top left.


    just select an item from the gird and add it to box 2 or 4 and then click on the box and you will see what i mean.

    Thanks.

    **edit** removed link.
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Width has no "direction".

    Really what you want is two concurrent animations.

    Animate the left style attribute downwards, and the width upwards.

  3. #3
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal
    Width has no "direction".

    Really what you want is two concurrent animations.

    Animate the left style attribute downwards, and the width upwards.
    Ok that make some sense to me. can you give me an example?

    Thank Animal!

    **Edit**

    I got it working now animal. Thanks again!!!
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Location
    Austin, Texas
    Posts
    2
    Vote Rating
    0
    brian.moeskau is an unknown quantity at this point

      0  

    Default


    Hey Jon,

    Just wanted to point out that using Element.slideOut/In, you can pass an anchor as a parameter to control exactly what you're trying to do. Check out the Fx class for details.

    Brian

  5. #5
    Developer... jon.whitcraft's Avatar
    Join Date
    Mar 2007
    Posts
    391
    Vote Rating
    0
    jon.whitcraft is on a distinguished road

      0  

    Default


    Thanks guys.

    With some help from Jack I got this figured out.

    Here is what i came up with when the box is clicked.

    Code:
    var imgSize = Ext.fly(img[0]).getSize();
    var xy = cBox.getXY();
    if(cBox.hasClass('expanded')) {
    	// we are expaned, do collapse
    	if(cBox.hasClass('rightBox')) {
    	    cBox.setBounds(xy[0]+(imgSize.width-340),xy[1],342,152,{callback: function() {
    		    this.setStyle('position','');
    		    this.removeClass('expanded');
    		}}
    	    );
    	} else {
    	    cBox.setBounds(xy[0],xy[1],342,152,{callback: function() {
    		    this.setStyle('position','');
    		    this.removeClass('expanded');
    		}});
    	}
    } else {
    	cBox.setStyle('position','absolute');
    	if(cBox.hasClass('rightBox')) {
    	    cBox.setBounds(xy[0]-(imgSize.width-340),xy[1],imgSize.width,imgSize.height,true);
    	} else {
    	    cBox.setBounds(xy[0],xy[1],imgSize.width,imgSize.height,true);
    	}
    	cBox.addClass('expanded');
    }
    Jon
    Lead Internal Application Engineer - SugarCRM
    h2ik.co

Similar Threads

  1. grid direction problem
    By efi in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 22 Nov 2007, 11:44 AM
  2. Side Effect with Animation v1.0a2
    By mikegiddens in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 26 Feb 2007, 7:34 PM
  3. Animation/Fx
    By brant in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 19 Feb 2007, 8:27 PM
  4. Sort direction and sort images
    By dfenwick in forum Ext 1.x: Bugs
    Replies: 3
    Last Post: 20 Sep 2006, 11:53 PM

Thread Participants: 2