Ticket #149: 149_Style.diff
| File 149_Style.diff, 1.0 kB (added by therve@gmail.com, 2 years ago) |
|---|
-
Style.js
old new 293 293 if (!elem) { 294 294 return undefined; 295 295 } 296 if (self.computedStyle(elem, 'display') != 'none') { 296 // display can be empty on Konqueror/KHTML 297 var disp = self.computedStyle(elem, 'display'); 298 if (disp != 'none' && disp != '') { 297 299 return new self.Dimensions(elem.offsetWidth || 0, 298 300 elem.offsetHeight || 0); 299 301 } … … 306 308 var originalWidth = elem.offsetWidth; 307 309 var originalHeight = elem.offsetHeight; 308 310 s.display = 'none'; 309 s.position = originalPosition; 311 // If position is empty, don't overwrite it (Konqueror/KHTML) 312 if (originalPosition != '') { 313 s.position = originalPosition; 314 } 310 315 s.visibility = originalVisibility; 311 316 return new self.Dimensions(originalWidth, originalHeight); 312 317 },
