Index: trunk/extensions/SemanticForms/libs/SF_popupform.js |
— | — | @@ -202,7 +202,7 @@ |
203 | 203 | var iframe = jQuery( event.target ); |
204 | 204 | var iframecontents = iframe.contents(); |
205 | 205 | |
206 | | - if ( brokenChrome ) container[0].style.visibility = "hidden"; |
| 206 | + if ( brokenBrowser ) container[0].style.visibility = "hidden"; |
207 | 207 | else container[0].style.opacity = 0; |
208 | 208 | |
209 | 209 | container.show(); |
— | — | @@ -230,19 +230,16 @@ |
231 | 231 | minWidth: "0px", |
232 | 232 | minHeight:"0px", |
233 | 233 | overflow: "visible", |
234 | | - position: "absolute", |
| 234 | + position: "relative", |
235 | 235 | top: "0", |
236 | 236 | left: "0", |
237 | 237 | border: "none" |
238 | 238 | } ) |
239 | | - .parents().css( { |
| 239 | + .parents('body').css( { |
240 | 240 | margin: 0, |
241 | 241 | padding: 0, |
242 | | - width: "auto", |
243 | | - height: "auto", |
244 | 242 | minWidth: "0px", |
245 | 243 | minHeight:"0px", |
246 | | - overflow: "visible", |
247 | 244 | background: "transparent" |
248 | 245 | }) |
249 | 246 | .andSelf().siblings(); |
— | — | @@ -504,18 +501,20 @@ |
505 | 502 | |
506 | 503 | // find the dimensions of the document |
507 | 504 | |
508 | | - var html = content.closest('html'); |
| 505 | + var body = content.closest('body'); |
| 506 | + var html = body.parent(); |
509 | 507 | |
510 | 508 | var scrollTgt = html; |
511 | 509 | |
512 | 510 | if ( jQuery.browser.webkit || jQuery.browser.safari ) { |
513 | | - scrollTgt = content.closest('body'); |
| 511 | + scrollTgt = body; |
514 | 512 | } |
515 | 513 | |
516 | 514 | var scrollTop = scrollTgt.scrollTop() |
517 | 515 | var scrollLeft = scrollTgt.scrollLeft(); |
518 | 516 | |
519 | 517 | content |
| 518 | + .css('position', 'absolute') |
520 | 519 | .width( 'auto' ) |
521 | 520 | .height( 'auto' ); |
522 | 521 | |
— | — | @@ -534,6 +533,7 @@ |
535 | 534 | .height( '100%' ); |
536 | 535 | |
537 | 536 | content |
| 537 | + .css('position', 'relative') |
538 | 538 | .width( oldContW ) |
539 | 539 | .height( oldContH ); |
540 | 540 | |
— | — | @@ -696,9 +696,15 @@ |
697 | 697 | } |
698 | 698 | |
699 | 699 | scrollTgt |
| 700 | + .css('overflow', 'auto') |
700 | 701 | .scrollTop(Math.min(scrollTop, docpH - frameH)) |
701 | 702 | .scrollLeft(scrollLeft); |
702 | 703 | |
| 704 | + if ( jQuery.browser.mozilla ) { |
| 705 | + body |
| 706 | + .css('overflow', 'auto') |
| 707 | + } |
| 708 | + |
703 | 709 | return true; |
704 | 710 | } |
705 | 711 | |