Results 1 to 3 of 3

Thread: Bug: Ext.Panel margin, padding, border

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    693
    Vote Rating
    12
      0  

    Exclamation 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
    11
      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 Premium User mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    693
    Vote Rating
    12
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •