kueblc / LDT

Lightweight in browser syntax highlighting
https://kueblc.github.io/LDT/
159 stars 17 forks source link

.ldt label should clone textarea’s styles #11

Open dy opened 9 years ago

dy commented 9 years ago

For now style of textarea is unable to be changed, because it will cause bad .ldt label offsets. I think, it’d be nice for LDT to try to clone generic textarea’s padding, border and other vital styles, in order to behave less rigidly.

silverweed commented 9 years ago

I second this; also, it'd be nice if the TextareaDecorator honored the width/height of the underlying textarea and allowed a overflow: auto behaviour instead of just expanding the textarea indefinitely (https://github.com/kueblc/LDT/blob/master/lib/TextareaDecorator.js#L62-L77).

I'm using Firefox and it seems that if you write too much lines in the textarea, the page won't even allow scrolling up until you delete all the exceeding lines (not sure if it's a Firefox bug or what).