X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Anchor.html?ds=sidebyside diff --git a/docs/source/Anchor.html b/docs/source/Anchor.html index 633721af..0c94be07 100644 --- a/docs/source/Anchor.html +++ b/docs/source/Anchor.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @class Ext.layout.container.Anchor
* @extends Ext.layout.container.Container
*
@@ -51,7 +68,7 @@ Ext.define('Ext.layout.container.Anchor', {
/* End Definitions */
- /**
+ /**
* @cfg {String} anchor
* <p>This configuation option is to be applied to <b>child <tt>items</tt></b> of a container managed by
* this layout (ie. configured with <tt>layout:'anchor'</tt>).</p><br/>
@@ -101,7 +118,7 @@ anchor: '-50 75%'
type: 'anchor',
- /**
+ /**
* @cfg {String} defaultAnchor
*
* default anchor for all child container items applied if no anchor or specific width is set on the child item. Defaults to '100%'.
@@ -126,7 +143,7 @@ anchor: '-50 75%'
len = components.length,
boxes = [],
box, newTargetSize, anchorWidth, anchorHeight, component, anchorSpec, calcWidth, calcHeight,
- anchorsArray, anchor, i, el;
+ anchorsArray, anchor, i, el, cleaner;
if (ownerWidth < 20 && ownerHeight < 20) {
return;
@@ -159,6 +176,7 @@ anchor: '-50 75%'
// Work around WebKit RightMargin bug. We're going to inline-block all the children only ONCE and remove it when we're done
if (!Ext.supports.RightMargin) {
+ cleaner = Ext.core.Element.getRightMarginFixCleaner(target);
target.addCls(Ext.baseCSSPrefix + 'inline-children');
}
@@ -201,6 +219,7 @@ anchor: '-50 75%'
// Work around WebKit RightMargin bug. We're going to inline-block all the children only ONCE and remove it when we're done
if (!Ext.supports.RightMargin) {
target.removeCls(Ext.baseCSSPrefix + 'inline-children');
+ cleaner();
}
for (i = 0; i < len; i++) {
@@ -260,4 +279,6 @@ anchor: '-50 75%'
return value;
}
-});
\ No newline at end of file
+});
+
+