[Snails] Use JS for autoresizing.