- Timestamp:
- 12/12/08 14:07:54 (12 months ago)
- Files:
-
- 1 modified
-
trunk/ippu.js (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippu.js
r267 r269 164 164 // don't do anything if inside the popup 165 165 if (DOM.getAncestorsByClassName(target, "ippu", true).length > 0) return; 166 167 166 this.cancel(); 168 167 }, … … 175 174 if (this.cancelledCallback) 176 175 this.cancelledCallback(); 177 178 176 this.hide(); 179 177 }, … … 184 182 185 183 setupClickCapture : function () { 186 if (!this.visible() || this.clickHandlerSetup) return;187 if (!this.clickToClose && !this.modal) return;184 if (!this.visible() || this.clickHandlerSetup){return;} 185 if (!this.clickToClose && !this.modal) {return;} 188 186 189 187 this.clickHandlerFunc = this.clickHandler.bindEventListener(this); … … 192 190 // create document-sized div to capture events 193 191 if (this.overlay) return; // wtf? shouldn't exist yet 194 195 192 this.overlay = document.createElement("div"); 196 this.overlay.style.position = "fixed";197 193 this.overlay.style.left = "0px"; 198 194 this.overlay.style.top = "0px"; 199 195 this.overlay.style.margin = "0px"; 200 196 this.overlay.style.padding = "0px"; 197 201 198 this.overlay.style.backgroundColor = "#000000"; 199 this.overlay.style.zIndex="900"; 200 if (IPPU.isIE()){ 201 this.overlay.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=50)"; 202 this.overlay.style.position="absolute"; 203 this.overlay.style.width=document.body.scrollWidth; 204 this.overlay.style.height=document.body.scrollHeight; 205 } 206 else{ 207 this.overlay.style.position = "fixed"; 208 } 202 209 203 210 this.ele.parentNode.insertBefore(this.overlay, this.ele); … … 217 224 var cd = DOM.getClientDimensions(); 218 225 this.overlay.style.width = (cd.x - 1) + "px"; 219 this.overlay.style.height = (cd.y - 1) + "px"; 220 226 if(!IPPU.isIE()){ 227 this.overlay.style.height = (cd.y - 1) + "px"; 228 } 221 229 if (this.visibleOverlay) { 222 230 this.overlay.backgroundColor = "#000000"; … … 420 428 var cd = DOM.getClientDimensions(); 421 429 var newtop = cd.y / 2 - DOM.getDimensions(this.ele).offsetHeight / 2; 430 422 431 // If not fixed position, center relative to the top of the page 423 432 if (!this.fixedPosition) {
