blob: 6bb34c05ea4db11842349ae1e94e72c3fc7d5982 [file] [log] [blame]
<html>
<body>
<textarea id="ta" rows=10 cols=40>Sample text</textarea>
<script>
var v = document.getElementById('ta');
var w = v.offsetWidth; // Force a layout
v.rows += 40; // Change the rows again.
w = v.offsetWidth; // Force a layout again.
</script>
</body>
</html>