1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default Unanswered: setPosition() vs setPagePosition()

    Unanswered: setPosition() vs setPagePosition()


    Hi,

    Currently, I do not see any difference in these functions... they both set the top, left and relative position... I would assume setPagePosition would be absolute. Please advise.

    Thanks,
    Audra

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Setting the position of a component using setPosition positions that element relative to its containing block.

    Setting the position of a component using setPagePosition positions that element relative to the entire page.

    The reason you are seeing the same behaviour with both methods may be that your component is not inside any other positioned element. As a result, your component is positioned relative to the initial containing block, which is in most cases the page itself.

    You can read more about positioning and containing blocks in the CSS spec section on Positioning Schemes.

  3. #3
    Sencha User
    Join Date
    Oct 2010
    Posts
    128
    Vote Rating
    2
    audra is on a distinguished road

      0  

    Default


    but wouldn't 'relative to the page position' require absolute positioning? both calls assign 'position: relative' to the element.

    i see that setPosition calls x.getElement().makePositionable(), and if i call makePositionable() myself, the element will have an absolute position, but setPostition does not end up with an absolute position...

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Answers
    60
    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


    Take a look at the method source. It translates the position into relative coordinates.

Thread Participants: 2

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