1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    81
    Answers
    3
    Vote Rating
    0
    mice-pace is on a distinguished road

      0  

    Default Unanswered: Components inside components... where do i refresh?

    Unanswered: Components inside components... where do i refresh?


    Just a quick psuedocode example

    Code:
    Container: [Form.Panel]
    
    Form.Panel: [FieldSet1, FieldSet2]
    
    FieldSet1: [Container1, Container2, Container3, Container4]
    
    Container1(hbox): [displayfield, label, displayfield]
    (Just focus on Container1 for now, we don't need to know what's in the rest)

    Now the two displayfields form a name (first/last) using the label as a spacer. The container they are in has a width, but they do not... the idea being they could expand or shrink to take advantage of the space as they need to.

    When I load data into the form.panel the text in each of the displayfields changes, but their width (and therefore their position) doesn't change, leaving them where they are, with either giant gaps or overlapping text

    My question then, there are a number of methods to force layout, are there any that bubble down? (if so how far, which components have it etc...) Do I need to refresh each component individually? (perhaps recursively drilling down?) or am I trying to do something EXTJS wasn't meant to do? (I can perhaps replicate the look by having just one displayfield and manipulating the data to make composite data, but that would be messy)

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,581
    Answers
    540
    Vote Rating
    317
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    What you're trying to do sounds fine. Updating the text in a displayfield should automatically re-run the relevant layouts. What ExtJS version are you using?

    You can see the code that calls updateLayout here:

    http://docs.sencha.com/ext-js/4-1/so...od-setRawValue

    You might want to check whether the version of ExtJS you're using has that line.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    81
    Answers
    3
    Vote Rating
    0
    mice-pace is on a distinguished road

      0  

    Default


    Nooo... It doesn't have that code. And looking at the URL it's using it's... 4.0.7 Damn.

    You've been very helpful Skirtle. Don't suppose you know how to change the EXT JS version on Architect though? ...I'll ask elsewhere just in case, but it would be a huge help on the off-chance you did.

  4. #4
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,581
    Answers
    540
    Vote Rating
    317
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    You may need to upgrade your Architect version too.

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