-
3 Feb 2012 2:34 AM #1
Problem with collapsible panel when setTitle
Problem with collapsible panel when setTitle
These are the steps i performed.
1. Initial collapsible panel title set to 'Scope' and it is shown in horizontal title and vertical title (when colapsed)
2. set the title to 'Scope: 1' having the panel expanded and it is shown in horizontal title fine. But when you collapse vertical title is blank
3. set the title to 'Scope: 2' having the panel expanded and it is shown in horizontal title fine. But But when you collapse vertical title is blank
This issue is not generic to collapsible panel. It is working fine with normal collapsible panel.
It is even working with collapsible panel in north or south region of a border layout
But it is not working with collapsible panel in east or west region of a border layout !!
Last edited by mitchellsimoens; 3 Feb 2012 at 9:23 AM. Reason: Clarity
-
3 Feb 2012 9:23 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Using this code I cannot reproduce:
Code:new Ext.container.Viewport({ layout: { type: 'hbox', align: 'stretch' }, renderTo: document.body, items: [{ xtype: 'panel', title: 'Flex panel', flex: 1 },{ xtype: 'grid', title: 'Grid', width: 200, collapsible: true, //collapsed: true, collapseDirection: 'right', animCollapse: false, columns: [ { header: 'Test', width: 220 } ], dockedItems : [ { xtype : 'toolbar', dock : 'bottom', items : [ { text : 'Change Title', handler : function(btn) { var grid = btn.up('gridpanel'); grid.setTitle('Grid 1'); } } ] } ] }] });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.
-
5 Feb 2012 6:51 AM #3
Thanks
mitchellsimoens for the response.
The problem only comes in collapsible panel in east or west region of a border layout...
-
8 Apr 2012 2:38 PM #4
Buggy
Buggy
I can confirm the bug too!
-
15 Jun 2012 5:18 PM #5
this bug is back in 4.1.1rc2.
Wemerson Januario
Skype: wemerson.januario
Email: wemerson.januario@gmail.com
Fone: 62 84101145 - Goiânia-GO- Brazil
Consulting and Training Ext JS
Projects: (Nubes ERP)
-
15 Jun 2012 7:02 PM #6
Using this code, how can I reproduce it?
Code:Ext.require('*'); Ext.onReady(function() { var title = 'Foo'; new Ext.container.Viewport({ layout: 'border', renderTo: document.body, items: [{ region: 'center', items: { xtype: 'button', text: 'Change Title', handler: function(btn) { if (title == 'Foo') { title = 'Bar' } else { title = 'Foo'; } Ext.getCmp('foo').setTitle(title); } } }, { region: 'east', id: 'foo', title: title, width: 200, collapsible: true, animCollapse: false, collapsed: true }] }); });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
16 Jun 2012 4:45 AM #7
@evant, you code works properly, but when we call setTitle inside initComponent() after callParent you can reproduce the error.
please run this code, then you will see the west panel collpase tool disappear. This code works in 4.1.0 but not in 4.1.1
Code:Ext.require('*');Ext.onReady(function() { var title = 'Foo'; Ext.define('Viewport',{ extend: 'Ext.container.Viewport', layout: 'border', renderTo: document.body, initComponent: function(){ var me = this; Ext.apply(me, { items: [{ region: 'center', items: { xtype: 'button', text: 'Change Title', handler: function(btn) { if (title == 'Foo') { title = 'It works' } else { title = 'It also works'; } Ext.getCmp('foo').setTitle(title); } } }, { region: 'west', id: 'foo', title: title, width: 200, collapsible: true, // animCollapse: false, collapsed: false }] }); me.callParent(); if(1 === 1){ me.down('panel[id=foo]').setTitle('Helloooooooooooooo'); } } }); Ext.create('Viewport'); });Wemerson Januario
Skype: wemerson.januario
Email: wemerson.januario@gmail.com
Fone: 62 84101145 - Goiânia-GO- Brazil
Consulting and Training Ext JS
Projects: (Nubes ERP)
-
28 Dec 2012 1:40 AM #8
Hi All,
I am also having the same issue (EXTJS 4.0.7). Can anybody help me to fix Please?
Thanks in advance.
Regards,
SS_NKL
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote
