Permalink
Browse files

ensure text area resizes properly (measure isn't a method of td)

  • Loading branch information...
1 parent ecf2aa8 commit f15dfc3c44bcdafdce28c5ecb6698db3d4c86605 Simon Tokumine committed Jul 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/layouts/tolk/application.html.erb
@@ -26,7 +26,7 @@
<script type="text/javascript">
$$('td textarea').each(function(element) {
- element.setStyle({height: element.up('td').measure('height')+'px'});
+ element.setStyle({height: element.up('td').getDimensions().height +'px'});
});
</script>
</body>

0 comments on commit f15dfc3

Please sign in to comment.