-
22 Jan 2013 2:13 PM #1
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>
-
24 Jan 2013 7:56 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,583
- Vote Rating
- 434
Looks to be that border layout doesn't respect that config. Will report as a bug.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-8304
in
4.2.0 Sprint 4 (GA).


Reply With Quote