Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8304 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2011
    Posts
    8
    Vote Rating
    0
    cbadz is on a distinguished road

      0  

    Default Panel titleAlign: center - render issue?

    Panel titleAlign: center - render issue?


    I am trying to make use of the Ext.panel.Panel config "titleAlign" and I found the config does not work as I expected when I have my panel in a collapsed view.

    The example I have attached below is of a tab panel with titleAlign: 'center' but when it is in the collapsed state the title still renders left justified. Is this a bug? If there is a solution where the title is always centered no matter if the panel is collapsed or expanded that would be great!

    Thanks in advance.

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    
    <html>
    <head>
        <title>Panel Title Align Center</title>
        <link rel="stylesheet" type="text/css" href="resources/css/ext-all.css">
        <script type="text/javascript" src="ext-all-debug.js"></script>
        <script type="text/javascript">
        Ext.BLANK_IMAGE_URL = (Ext.isIE6 || Ext.isIE7) ? 'resources/themes/images/default/tree/s.gif' : Ext.BLANK_IMAGE_URL;
        Ext.onReady(function () {
            Ext.create('Ext.container.Viewport', {                       
                layout: 'border',
                items: [{
                    xtype: 'panel',
                    region: 'center',
                    title: 'center panel'
                },{
                    xtype: 'tabpanel',
                    title: 'This is my Tab Panel Title',
                    titleAlign: 'center',
                    region: 'south',
                    collapsible: true,
                    collapsed: true,
                    items: [{
                        xtype: 'tab',
                        html: '<h3>tab1</h3>',
                        closable: false
                    }]
                }]
            });
        });
        </script>
    </head>
    <body></body>
    </html>

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Looks to be that border layout doesn't respect that config. Will report as a bug.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar