(iframe)
| 545 | * @return {!Element} |
| 546 | */ |
| 547 | export function disableScrollingOnIframe(iframe) { |
| 548 | addAttributesToElement(iframe, {'scrolling': 'no'}); |
| 549 | |
| 550 | // This shouldn't work, but it does on Firefox. |
| 551 | // https://stackoverflow.com/a/15494969 |
| 552 | setStyle(iframe, 'overflow', 'hidden'); |
| 553 | |
| 554 | return iframe; |
| 555 | } |
| 556 | |
| 557 | /** |
| 558 | * Returns true if win's properties can be accessed and win is defined. |
no test coverage detected