Skip to main content

Search and Top Navigation

Ticket #4603: resizable_ticket_4603.html


File resizable_ticket_4603.html, 1.5 KB (added by sc0rchin, September 30, 2009 05:57PM UTC)

html visual test of ticket #4603

<!doctype html>
<html lang="en">
<head>
	<title>Resizable Visual Test : Resizable ticket #4603</title>
	<link rel="stylesheet" href="../visual.css" type="text/css" />
	<link rel="stylesheet" href="../../../themes/base/ui.all.css" type="text/css" />
	<script type="text/javascript" src="../../../jquery-1.3.2.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.core.js"></script>
	<script type="text/javascript" src="../../../ui/jquery.ui.resizable.js"></script>
	<script type="text/javascript">
		$(function() {
			
			// textarea needs to fill the resizable
			$("#textarea").width($("#resizable").width() - 10)
			
			$("#resizable").resizable({
				alsoResize: '#textarea',
				containment: '#container',
				cancel: '#textarea'
			});
		});
	</script>
	
	<style>
		#container { width: 450px; height: 450px; border: 1px solid grey; }
		
		#resizable { width: 250px; padding: 5px; border: 1px solid black; }
		#resizable label { display: block; background: silver; }
		
		/* need to loose the textarea resize handle in webkit */
		.ui-resizable textarea { 
			resize: none;
		}
	</style>
</head>
<body>

<h1 class="ui-widget-header"><a href="http://dev.jqueryui.com/ticket/4603">Ticket #4603 - AlsoResize doesn't work fine with containment</a></h1>

<div id="container">
	
<div id="resizable">
	<label for="textarea">Enter Text Here...</label>
	<textarea id="textarea"></textarea>
</div>

</div>

</body>
</html>

Download in other formats:

Original Format