fix: check detached state in .visible. fixes #58.
Fixes last character cropping bug