Changeset 05b9a2a in github
- Timestamp:
- Dec 17, 2008 6:19:24 AM (4 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 44ea3fd
- Parents:
- c2af7eb
- File:
-
- 1 edited
-
skins/default/splitter.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
skins/default/splitter.js
r80c6786 r05b9a2a 75 75 this.layer.move(this.layer.x, Math.round(this.pos - lh / 2 + 1)); 76 76 if (bw.ie) 77 this.p2.style.height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top))+'px'; 77 { 78 var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top)); 79 this.p2.style.height = (new_height > 0 ? new_height : 0) +'px'; 80 } 78 81 } 79 82 else … … 118 121 var s = this; 119 122 var id = iframes[n].id; 120 this.iframe_events[n] = function(e){ e._ rc_pos_offset = rcube_get_object_pos(document.getElementById(id)); return s.onDrag(e); }123 this.iframe_events[n] = function(e){ e._offset = rcube_get_object_pos(document.getElementById(id)); return s.onDrag(e); } 121 124 122 125 if (iframedoc.addEventListener) … … 137 140 this.onDrag = function(e) 138 141 { 142 if (!this.drag_active) return false; 143 139 144 var pos = rcube_event.get_mouse_pos(e); 140 141 if (!this.drag_active) return false;142 143 if (e._rc_pos_offset)144 {145 pos.x += e._rc_pos_offset.x;146 pos.y += e._rc_pos_offset.y;147 }148 145 149 146 if (this.relative) … … 216 213 return bw.safari ? true : rcube_event.cancel(e); 217 214 }; 215 218 216 /** 219 217 * Handler for window resize events … … 222 220 { 223 221 if (this.horizontal) 224 this.p2.style.height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top))+'px'; 222 { 223 var new_height = (parseInt(this.p2.parentNode.offsetHeight) - parseInt(this.p2.style.top)); 224 this.p2.style.height = (new_height > 0 ? new_height : 0) +'px'; 225 } 225 226 else 226 227 this.p2.style.width = (parseInt(this.p2.parentNode.offsetWidth) - parseInt(this.p2.style.left))+'px';
Note: See TracChangeset
for help on using the changeset viewer.
