Last active
December 17, 2015 09:54
-
-
Save bjoerntx/e21d720d61091d16d295 to your computer and use it in GitHub Desktop.
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
<script> | |
// re-arrange TextControl to fill browser Window | |
function arrangeTextControl() { | |
$(".editor").children().first().css("top", "50px"); | |
$(".editor").children().first().css( | |
"height", window.innerHeight - 50 + "px"); | |
} | |
// attached resize events and re-arrange the controls | |
if (window.attachEvent) { | |
window.attachEvent('onresize', function () { | |
arrangeTextControl(); | |
}); | |
} | |
else if (window.addEventListener) { | |
window.addEventListener('resize', function () { | |
arrangeTextControl(); | |
}, true); | |
} | |
arrangeTextControl(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment