Results 1 to 2 of 2

Thread: centering table vertically and horizontally.

  1. #1

    Default centering table vertically and horizontally.

    i'm trying to center a table (containing html fragment of a login form) in a panel vertically and horizontally:

    PHP Code:

        Resize
    :function(){
            var 
    s=this.getSize() ;
            var 
    p=this.getPostion();
            
            var 
    Ext.get('tblLogin');
            var 
    t=e.getSize();
            
            
    e.setX(p[0]+(s.width-t.width)/2);
            
    e.setY(p[1]+(s.height-t.height)/2);    
            
        },

    onRender: function(){

      ....
        
    this.on('resize',this.Resize,this);
      ....

    i can't get it to work as FF is complaining this.getPostion is not a function/ this.getX() is not a function eventhough these function can be seen in the list.


    has anyone centered a html table in a panel?

  2. #2

    Default

    LAUGHING MYSELF SILLY ON THIS!!!

    this.Postion should have been this.Position

Posting Permissions

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