Hybrid View

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Exclamation Bug: Ext.Panel margin, padding, border

    Bug: Ext.Panel margin, padding, border


    There is a bug if you add one of the following properties to a Ext.Panel:
    • margin
    • padding
    • padding
    the bug occurs in the onRender function:

    example:
    PHP Code:
    ...
    if (
    this.padding != undefined) {
                
    bodyCfg.style +=
                    
    'padding: ' +
                        
    Ext.Element.parseBox((this.padding === true) ? 5
                            
    this.padding) + ';';
    }
    ... 
    reason:
    PHP Code:
     Ext.Element.parseBox() 
    returns an object but it must be a string for the style string concatenation

    result:
    the styles for padding, margin or border are not added to the Panel


    testscript:
    PHP Code:
    Ext.onReady( function() {
        new 
    Ext.Panel({
                
    fullscreentrue,
                
    renderToExt.getBody(),
                
    padding20,
                
    border10,
                
    margin35,
                
    html'padding test'
        
    });
    }); 

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    10
    TommyMaintz will become famous soon enough TommyMaintz will become famous soon enough

      0  

    Default


    Hey Nils,

    Thanks for the report. I haven't really looked into / used the padding / border / margin properties on components. I usually set them in CSS which is where it belong imo. I will make sure they work in an upcoming release though. Note: if you are using margin on a panel that is docked, it won't take those margins into account yet.

  3. #3
    Sencha - Training Team mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    691
    Vote Rating
    12
    mrsunshine will become famous soon enough

      0  

    Default


    Quote Originally Posted by TommyMaintz View Post
    Hey Nils,

    Thanks for the report. I haven't really looked into / used the padding / border / margin properties on components. I usually set them in CSS which is where it belong imo.
    yes off course ;-)

    i stumbled over this while writing the first ten lines of code of my first ext touch test application.
    i post it because that the beta test is for ;-)
    Quote Originally Posted by TommyMaintz View Post
    I will make sure they work in an upcoming release though. Note: if you are using margin on a panel that is docked, it won't take those margins into account yet.
    great and thx for the tip

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..."