danielearwicker / carota

Simple, flexible rich text rendering/editing on HTML Canvas
Other
732 stars 145 forks source link

A single word is wider than the constrained document width - what happens? #16

Closed danielearwicker closed 11 years ago

danielearwicker commented 11 years ago

Up to this point, the word is simply clipped. No horiz scrollbar appears. The user can move the caret along to the end of the word but cannot see what they are doing.

Instead, horizontal scrolling should be supported, and the view should scroll to ensure that the caret is visible (just as it already does vertically). This would only kick in when there is at least one word with non-space content that is wider than the whole document's width constraint, thus giving it an "actualWidth" that is wider than the window.