X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/HBox.html?ds=inline diff --git a/docs/source/HBox.html b/docs/source/HBox.html index 5388d672..e20f9e7b 100644 --- a/docs/source/HBox.html +++ b/docs/source/HBox.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.layout.container.HBox
* @extends Ext.layout.container.Box
* <p>A layout that arranges items horizontally across a Container. This layout optionally divides available horizontal
@@ -40,7 +57,7 @@ Ext.define('Ext.layout.container.HBox', {
/* End Definitions */
- /**
+ /**
* @cfg {String} align
* Controls how the child items of the container are aligned. Acceptable configuration values for this
* property are:
@@ -83,5 +100,21 @@ Ext.define('Ext.layout.container.HBox', {
perpendicularRB: 'b',
perpendicularLeftTop: 'top',
perpendicularRightBottom: 'bottom',
- perpendicularPosition: 'y'
-});
\ No newline at end of file
+ perpendicularPosition: 'y',
+ configureItem: function(item) {
+ if (item.flex) {
+ item.layoutManagedWidth = 1;
+ } else {
+ item.layoutManagedWidth = 2;
+ }
+
+ if (this.align === 'stretch' || this.align === 'stretchmax') {
+ item.layoutManagedHeight = 1;
+ } else {
+ item.layoutManagedHeight = 2;
+ }
+ this.callParent(arguments);
+ }
+});
+
+