diff options
| author | alecpl <alec@alec.pl> | 2009-09-30 16:09:25 +0000 | 
|---|---|---|
| committer | alecpl <alec@alec.pl> | 2009-09-30 16:09:25 +0000 | 
| commit | 52bd7bf16ed79c10c3b37d147595f57f3cc53cd6 (patch) | |
| tree | 76c9a9f6224524f2e3347d28ebde04473cdac712 | |
| parent | 4f420b95c62f330db37cce5a080f509eb0cb404d (diff) | |
- fix 2px splitter issue on IE8
| -rw-r--r-- | skins/default/splitter.js | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/skins/default/splitter.js b/skins/default/splitter.js index 83506eecb..b9318c0af 100644 --- a/skins/default/splitter.js +++ b/skins/default/splitter.js @@ -75,7 +75,7 @@ function rcube_splitter(attrib)        this.layer.move(this.layer.x, Math.round(this.pos - lh / 2 + 1));        if (bw.ie)          { -        var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top)); +        var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top) - (bw.ie8 ? 2 : 0));          this.p2.style.height = (new_height > 0 ? new_height : 0) +'px';          }        } @@ -228,7 +228,7 @@ function rcube_splitter(attrib)      {      if (this.horizontal)        { -      var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top)); +      var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top) - (bw.ie8 ? 2 : 0));        this.p2.style.height = (new_height > 0 ? new_height : 0) +'px';        }      else | 
