Here's the solution you've been looking for.
Method 1:
If you're using z-index
, simply include position:absolute
in your .sourceView
style.
body {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
overflow: hidden; /* added to prevent double scrollbars */
}
.sourceView {
height: 93%;
width: 100%;
z-index: 10;
position: absolute; /* add this line */
}
Method 2:
html,body{
height:100%;
}
body {
color: #000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
overflow: hidden; /* added to prevent double scrollbars */
}
Method 3:
For a javascript/jQuery solution, check out this link:
Static container height combined with a dynamically sized container, possible?
http://jsfiddle.net/tw16/X5rWb/