JSFiddle - React, Tailwind, and code Playground

HTML

<div class="container">
	<div class="panels">
		<div class="content windowborder">
			<div class="windowtitle">Title</div>
			<div class="windowcontent">
			  	<input type="button" value="btn" id="btn" />
				<div id="xx"></div>
			</div>
		</div>
	</div>
</div>

CSS

.container{
		height: 300px;
		left: 0;
		position: absolute;
		top: 30px;
		width: 100%;
    
		background-color:gray;
	}
	.panels{
		/**position: relative;*/
	}
	.content{
		position: absolute;
	}
	.windowborder{
		background: -moz-linear-gradient(center top , #7D7E7D 0%, #0E0E0E 13%) repeat scroll 0 0 transparent;
		border-radius: 10px 10px 10px 10px;
		box-shadow: 2px 2px 5px 1px #111111;
		padding: 30px 10px 10px;
		padding: 30px 10px 10px;
	}
	.windowcontent{
		background-color: white;
		padding: 10px;
	}
	.windowtitle{
		-moz-user-select: none;
		color: white;
		height: 30px;
		left: 0;
		position: absolute;
		text-align: center;
		top: 0;
		width: 100%;
	}

JavaScript

var btn=document.getElementById("btn");
	btn.onclick=function(){
		document.getElementById("xx").innerHTML+="I want the .windowcontent auto scroll-y when its size is changed( make sure the content does not take up place outside the .container)<br/>";
	}