git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 3.1.1 - Released 02/08/2010
[extjs.git]
/
docs
/
source
/
TabPanel.html
diff --git
a/docs/source/TabPanel.html
b/docs/source/TabPanel.html
index
5519460
..
1978a8c
100644
(file)
--- a/
docs/source/TabPanel.html
+++ b/
docs/source/TabPanel.html
@@
-35,6
+35,9
@@
* the active tab.</li>
* <li><tt><b>{@link Ext.Panel#deactivate deactivate}</b></tt> : Fires when the Component that
* was the active tab becomes deactivated.</li>
* the active tab.</li>
* <li><tt><b>{@link Ext.Panel#deactivate deactivate}</b></tt> : Fires when the Component that
* was the active tab becomes deactivated.</li>
+ * <li><tt><b>{@link Ext.Panel#beforeclose beforeclose}</b></tt> : Fires when the user clicks on the close tool of a closeable tab.
+ * May be vetoed by returning <code>false</code> from a handler.</li>
+ * <li><tt><b>{@link Ext.Panel#close close}</b></tt> : Fires a closeable tab has been closed by the user.</li>
* </ul></div>
* <p><b><u>Creating TabPanels from Code</u></b></p>
* <p>TabPanels can be created and rendered completely in code, as in this example:</p>
* </ul></div>
* <p><b><u>Creating TabPanels from Code</u></b></p>
* <p>TabPanels can be created and rendered completely in code, as in this example:</p>
@@
-104,11
+107,6
@@
Ext.TabPanel = Ext.extend(Ext.Panel, {
* class name applied to the tab strip item representing the child Component, allowing special
* styling to be applied.
*/
* class name applied to the tab strip item representing the child Component, allowing special
* styling to be applied.
*/
- <div id="cfg-Ext.TabPanel-monitorResize"></div>/**
- * @cfg {Boolean} monitorResize True to automatically monitor window resize events and rerender the layout on
- * browser resize (defaults to true).
- */
- monitorResize : true,
<div id="cfg-Ext.TabPanel-deferredRender"></div>/**
* @cfg {Boolean} deferredRender
* <p><tt>true</tt> by default to defer the rendering of child <tt>{@link Ext.Container#items items}</tt>
<div id="cfg-Ext.TabPanel-deferredRender"></div>/**
* @cfg {Boolean} deferredRender
* <p><tt>true</tt> by default to defer the rendering of child <tt>{@link Ext.Container#items items}</tt>
@@
-440,8
+438,9
@@
new Ext.TabPanel({
// private
findTargets : function(e){
// private
findTargets : function(e){
- var item = null;
- var itemEl = e.getTarget('li', this.strip);
+ var item = null,
+ itemEl = e.getTarget('li:not(.x-tab-edge)', this.strip);
+
if(itemEl){
item = this.getComponent(itemEl.id.split(this.idDelimiter)[1]);
if(item.disabled){
if(itemEl){
item = this.getComponent(itemEl.id.split(this.idDelimiter)[1]);
if(item.disabled){
@@
-549,8
+548,8
@@
new Ext.TabPanel({
beforeshow: this.onBeforeShowItem
});
},
beforeshow: this.onBeforeShowItem
});
},
-
-
+
+
<div id="method-Ext.TabPanel-getTemplateArgs"></div>/**
* <p>Provides template arguments for rendering a tab selector item in the tab strip.</p>
<div id="method-Ext.TabPanel-getTemplateArgs"></div>/**
* <p>Provides template arguments for rendering a tab selector item in the tab strip.</p>
@@
-770,7
+769,7
@@
new Ext.TabPanel({
var each = Math.max(Math.min(Math.floor((aw-4) / count) - this.tabMargin, this.tabWidth), this.minTabWidth); // -4 for float errors in IE
this.lastTabWidth = each;
var each = Math.max(Math.min(Math.floor((aw-4) / count) - this.tabMargin, this.tabWidth), this.minTabWidth); // -4 for float errors in IE
this.lastTabWidth = each;
- var lis = this.strip.query(
"li:not([className^=x-tab-edge])"
);
+ var lis = this.strip.query(
'li:not(.x-tab-edge)'
);
for(var i = 0, len = lis.length; i < len; i++) {
var li = lis[i],
inner = Ext.fly(li).child('.x-tab-strip-inner', true),
for(var i = 0, len = lis.length; i < len; i++) {
var li = lis[i],
inner = Ext.fly(li).child('.x-tab-strip-inner', true),
@@
-976,11
+975,11
@@
new Ext.TabPanel({
*/
scrollToTab : function(item, animate){
*/
scrollToTab : function(item, animate){
- if(!item){
- return;
+ if(!item){
+ return;
}
var el = this.getTabEl(item),
}
var el = this.getTabEl(item),
- pos = this.getScrollPos(),
+ pos = this.getScrollPos(),
area = this.getScrollArea(),
left = Ext.fly(el).getOffsetsTo(this.stripWrap)[0] + pos,
right = left + el.offsetWidth;
area = this.getScrollArea(),
left = Ext.fly(el).getOffsetsTo(this.stripWrap)[0] + pos,
right = left + el.offsetWidth;