1. `parseInt` should have the radix parameter set (`10`, in this case) https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/parseInt#Syntax
2. Why is `$(@el).height ""` called if it is overwritten in the following lines?
3. Nanoscroller has already a reference to `$(@el)`, so it should changed to `@$el`

Here is how this code could look like with fixes:

```
parentMaxHeight = parseInt(@$el.css("max-height"), 10)
if parentMaxHeight > 0
  @$el.height if content.scrollHeight > parentMaxHeight then parentMaxHeight else content.scrollHeight
```