Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JENKINS-34411] Add overflow override.
- Loading branch information
Andres Rodriguez
committed
Apr 29, 2016
1 parent
254d015
commit bf4ecc5
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/resources/org/jenkinsci/test/acceptance/selenium/overflow.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
var css = '* { overflow: visible !important }', | ||
head = document.head || document.getElementsByTagName('head')[0], | ||
style = document.createElement('style'); | ||
|
||
style.type = 'text/css'; | ||
style.id = 'ath-overflow-override' | ||
if (style.styleSheet){ | ||
style.styleSheet.cssText = css; | ||
} else { | ||
style.appendChild(document.createTextNode(css)); | ||
} | ||
|
||
head.appendChild(style); |