PDA

View Full Version : [FIXED] Overwriting a Tab's title when inherited



maikhorma
22 Aug 2012, 11:48 AM
Architect Build tested:

Build: 588 (2.1.0)
I think this first happened after the 2.1 major update, and continues from a minor update this morning.
Project Type:

ExtJS 4.x
Description:

A panel that is it's own class and has it's own title will lose the title when linked into a tabbed panel upon opening. It will be overwritten to "My Tab".
From what I can tell, Architect won't set the "title" property on the tab because it know's it's inherited. In that running instance of Architect it will look correct. If you save, then re-open, it appears that Architect determined that your linked in tab panel is missing a title, so it puts a generic one over top of the inherited.
Steps to reproduce the problem:

Create a viewport, set to fit.
Drop a tab panel into your viewport (it automatically creates 3 tabs)
Select Tab 1 and give it a title "Lost Title".
Should be applied correctly at this point.
Promote that panel to a class, so it is now linked into tab panel.
Still looks correct.
Save project.
Close Architect (probably not necessary)
Open saved project.
View title on tab.
The result that was expected:

The title on the tab should still be "Lost Title"
The result that occurs instead:

The title on the tab is "My Tab"
It appears Architect checks to make sure tabbed panels have titles, but doesn't notice if they're inherited.
HELPFUL INFORMATIONScreenshot, Project, or Video:

attached project after instructions are followed. With this project you can still:
open project
click on where it now says "My Tab" to edit
type "Lost Title"
It looks like it's set right again, but architect omits it from the properties because it knows it's inherited.
save project
open project
back to "My Tab"
Possible fix:

Whatever check that identifies that there is no title should look for an inherited title too.
Operating System:

Win 7 64 bit

maikhorma
22 Aug 2012, 11:59 AM
Sorry just found this is a duplicate.

Linked: http://www.sencha.com/forum/showthread.php?237999-SA-2.1-Linked-Tabs-names-reset-to-quot-My-Tab-quot

bhopek
22 Aug 2012, 10:19 PM
I've got the same problem under Win Xp 32bit.

aconran
23 Aug 2012, 1:54 PM
This will be fixed in the next minor release.

apsq
29 Aug 2012, 3:42 AM
ETA?