projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a7ae71
)
Roo/XComponent.js
author
Alan Knowles
<alan@akbkhome.com>
Sun, 31 Jul 2011 11:35:20 +0000
(19:35 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Sun, 31 Jul 2011 11:35:20 +0000
(19:35 +0800)
Roo/XComponent.js
patch
|
blob
|
history
diff --git
a/Roo/XComponent.js
b/Roo/XComponent.js
index
85f10d1
..
060df50
100644
(file)
--- a/
Roo/XComponent.js
+++ b/
Roo/XComponent.js
@@
-129,6
+129,7
@@
Roo.extend(Roo.XComponent, Roo.util.Observable, {
{
el = el || false;
+ var hp = this.parent ? 1 : 0;
if (!el && typeof(this.parent) == 'string' && this.parent[0] == '#') {
// if parent is a '#.....' string, then let's use that..
@@
-156,8
+157,8
@@
Roo.extend(Roo.XComponent, Roo.util.Observable, {
closeOnTab: true,
tabPosition: 'top',
//resizeTabs: true,
- alwaysShowTabs: el ? false : true,
- hideTabs: el ? true : false,
+ alwaysShowTabs: el
&& hp
? false : true,
+ hideTabs: el
|| !hp
? true : false,
minTabWidth: 140
}
})