]>
git.proxmox.com Git - extjs.git/blob - extjs/classic/classic/src/grid/locking/RowSynchronizer.js
4 Ext
.define('Ext.grid.locking.RowSynchronizer', {
5 constructor: function (view
, rowEl
) {
13 me
.add('data', view
.rowSelector
);
15 for (rowTpl
= view
.rowTpl
; rowTpl
; rowTpl
= rowTpl
.nextTpl
) {
16 if (rowTpl
.beginRowSync
) {
17 rowTpl
.beginRowSync(me
);
22 add: function (name
, selector
) {
23 var el
= Ext
.fly(this.rowEl
).down(selector
, true);
32 finish: function (other
) {
39 delta
, name
, otherHeight
;
42 otherEl
= otherEls
[name
];
44 // Partnet RowSynchronizer may not have the element.
45 // For example, group summary may not be wanted in locking side.
46 otherHeight
= otherEl
? otherEl
.height
: 0;
47 delta
= otherHeight
- els
[name
].height
;
51 Ext
.fly(els
[name
].el
).setHeight(otherHeight
);
57 // Compare the growth to both rows and see if this row is lacking.
58 otherHeight
= other
.rowHeight
+ otherGrowth
;
60 //<feature legacyBrowser>
61 // IE9 uses content box sizing on table, so height must not include border
62 if (Ext
.isIE9
&& me
.view
.ownerGrid
.rowLines
) {
67 if (me
.rowHeight
+ growth
< otherHeight
) {
68 Ext
.fly(me
.rowEl
).setHeight(otherHeight
);
72 measure: function () {
77 me
.rowHeight
= me
.rowEl
.offsetHeight
;
80 els
[name
].height
= els
[name
].el
.offsetHeight
;
88 this.rowEl
.style
.height
= '';
91 els
[name
].el
.style
.height
= '';