Index: trunk/extensions/SemanticForms/libs/SF_popupform.js |
— | — | @@ -504,9 +504,12 @@ |
505 | 505 | // find the dimensions of the document |
506 | 506 | |
507 | 507 | var html = content.closest('html'); |
508 | | - var scrollTgt = html; |
509 | 508 | |
510 | | - if( jQuery.browser.webkit || jQuery.browser.safari ){ |
| 509 | + var scrollTgt; |
| 510 | + |
| 511 | + if ( jQuery.browser.msie || jQuery.browser.opera ) { |
| 512 | + scrollTgt = html; |
| 513 | + } else { |
511 | 514 | scrollTgt = content.closest('body'); |
512 | 515 | } |
513 | 516 | |
— | — | @@ -535,15 +538,13 @@ |
536 | 539 | .width( oldContW ) |
537 | 540 | .height( oldContH ); |
538 | 541 | |
539 | | - var docW, docH; |
540 | | - |
541 | 542 | if ( jQuery.browser.msie ) { |
542 | 543 | docW += 20; |
543 | 544 | docH += 20; |
544 | 545 | } |
545 | 546 | |
546 | | - docpW = docW + 2 * padding; |
547 | | - docpH = docH + 2 * padding; |
| 547 | + var docpW = docW + 2 * padding; |
| 548 | + var docpH = docH + 2 * padding; |
548 | 549 | |
549 | 550 | // Flags |
550 | 551 | |