Results 1 to 2 of 2

Thread: Panel titleAlign: center - render issue?

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8304 in
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2011
    Vote Rating

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

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">
        <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

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    Looks to be that border layout doesn't respect that config. Will report as a bug.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:

Posting Permissions

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