Changeset 52bd7bf in github


Ignore:
Timestamp:
Sep 30, 2009 12:09:25 PM (4 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
bf1b66bf
Parents:
4f420b9
Message:
  • fix 2px splitter issue on IE8
File:
1 edited

Legend:

Unmodified
Added
Removed
  • skins/default/splitter.js

    rf9aeecd r52bd7bf  
    7676      if (bw.ie) 
    7777        { 
    78         var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top)); 
     78        var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top) - (bw.ie8 ? 2 : 0)); 
    7979        this.p2.style.height = (new_height > 0 ? new_height : 0) +'px'; 
    8080        } 
     
    229229    if (this.horizontal) 
    230230      { 
    231       var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top)); 
     231      var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top) - (bw.ie8 ? 2 : 0)); 
    232232      this.p2.style.height = (new_height > 0 ? new_height : 0) +'px'; 
    233233      } 
Note: See TracChangeset for help on using the changeset viewer.