4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-layout-component-Tab'>/**
19 </span> * Component layout for tabs
20 * @class Ext.layout.component.Tab
21 * @extends Ext.layout.component.Button
24 Ext.define('Ext.layout.component.Tab', {
26 alias: ['layout.tab'],
28 extend: 'Ext.layout.component.Button',
32 beforeLayout: function() {
33 var me = this, dirty = me.lastClosable !== me.owner.closable;
39 return this.callParent(arguments) || dirty;
42 onLayout: function () {
45 me.callParent(arguments);
47 me.lastClosable = me.owner.closable;