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]
/
src
/
widgets
/
layout
/
AnchorLayout.js
diff --git
a/src/widgets/layout/AnchorLayout.js
b/src/widgets/layout/AnchorLayout.js
index
612394a
..
8a0d1df
100644
(file)
--- a/
src/widgets/layout/AnchorLayout.js
+++ b/
src/widgets/layout/AnchorLayout.js
@@
-1,6
+1,6
@@
/*!
/*!
- * Ext JS Library 3.1.
0
- * Copyright(c) 2006-20
09
Ext JS, LLC
+ * Ext JS Library 3.1.
1
+ * Copyright(c) 2006-20
10
Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
* licensing@extjs.com
* http://www.extjs.com/license
*/
@@
-92,19
+92,21
@@
anchor: '-50 75%'
// private
monitorResize:true,
// private
monitorResize:true,
+ type: 'anchor',
- // private
- // deprecate
- getAnchorViewSize : function(ct, target){
- return target.dom == document.body ?
- target.getViewSize(true) : target.getStyleSize();
+ getLayoutTargetSize : function() {
+ var target = this.container.getLayoutTarget();
+ if (!target) {
+ return {};
+ }
+ // Style Sized (scrollbars not included)
+ return target.getStyleSize();
},
// private
onLayout : function(ct, target){
Ext.layout.AnchorLayout.superclass.onLayout.call(this, ct, target);
},
// private
onLayout : function(ct, target){
Ext.layout.AnchorLayout.superclass.onLayout.call(this, ct, target);
-
- var size = target.getViewSize(true);
+ var size = this.getLayoutTargetSize();
var w = size.width, h = size.height;
var w = size.width, h = size.height;
@@
-126,7
+128,7
@@
anchor: '-50 75%'
ah = ct.initialConfig.height;
}
ah = ct.initialConfig.height;
}
- var cs =
ct.items.items
, len = cs.length, i, c, a, cw, ch, el, vs;
+ var cs =
this.getRenderedItems(ct)
, len = cs.length, i, c, a, cw, ch, el, vs;
for(i = 0; i < len; i++){
c = cs[i];
el = c.getPositionEl();
for(i = 0; i < len; i++){
c = cs[i];
el = c.getPositionEl();