1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    5
    Vote Rating
    0
    japena03 is on a distinguished road

      0  

    Default Unanswered: How to offset the beginning of a new element

    Unanswered: How to offset the beginning of a new element


    I have a LayoutContainer that by the time I try to a new element (combo box) there's already a button in the container so when I add my element it gets overlayed and hides the first element. I need to offset my element by about 100px in order to add it next the already existing button. Is there a way to do this? I tried to directly insert into the container using the index but my element still gets put on top of the existing button. Any ideas are appreciated.

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,731
    Answers
    109
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Can you share the code you have now? It is difficult to say exactly what will be the correct answer without knowing the basic structure of what you are doing.

    At a guess, you will probably need to measure the existing element and set the position of the new one (combo.el().setXY(...), etc). Or, you could apply float:left to both children. It might also be possible to just instruct the parent container you are using to re-run its layout once you add something new - any details you can offer will help to tell which direction will be best.

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