Fix that negative lengths were added to the offset
Fix that negative lengths were added to the offset

ChenMichael/trix,urossmolnik/trix,urossmolnik/trix,basecamp/trix,GabiGrin/trix,basecamp/trix,GabiGrin/trix,urossmolnik/trix,ChenMichael/trix,ChenMichael/trix,basecamp/trix,GabiGrin/trix,basecamp/trix