Calculate actual tab position for Firefox 16 and olders
This commit is contained in:
parent
4d19cd75c6
commit
cefa9b52fa
@ -2436,7 +2436,7 @@ var TreeStyleTabBase = {
|
|||||||
|
|
||||||
var w = aTab.ownerDocument.defaultView;
|
var w = aTab.ownerDocument.defaultView;
|
||||||
var transform = w.getComputedStyle(aTab, null).transform;
|
var transform = w.getComputedStyle(aTab, null).transform;
|
||||||
var offset = transform.match(this.MATRIX_PATTERN);
|
var offset = transform && transform.match(this.MATRIX_PATTERN);
|
||||||
offset = offset ? parseFloat(offset[5]) : 0 ;
|
offset = offset ? parseFloat(offset[5]) : 0 ;
|
||||||
|
|
||||||
return x + offset;
|
return x + offset;
|
||||||
@ -2447,7 +2447,7 @@ var TreeStyleTabBase = {
|
|||||||
|
|
||||||
var w = aTab.ownerDocument.defaultView;
|
var w = aTab.ownerDocument.defaultView;
|
||||||
var transform = w.getComputedStyle(aTab, null).transform;
|
var transform = w.getComputedStyle(aTab, null).transform;
|
||||||
var offset = transform.match(this.MATRIX_PATTERN);
|
var offset = transform && transform.match(this.MATRIX_PATTERN);
|
||||||
offset = offset ? parseFloat(offset[6]) : 0 ;
|
offset = offset ? parseFloat(offset[6]) : 0 ;
|
||||||
|
|
||||||
return y + offset;
|
return y + offset;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user