Fix handling of inline elements (span, label etc). Closes #5

Fix handling of inline elements by using Math.max(clientHeight, offsetHeight, scrollHeight) instead of just clientHeight. Inline elements report 0 as clientHeight and scrollHeight