Re:Show HN: WideArea – an expandable textarea
by mbreese on Wednesday May 22, 2013 @06:04PM
(#5754099)
Wait, what? 2kb JS? 4kb CSS? Why does this take so much?
I use a similar fullscreen textarea toggle (actually an ACE editor), that is very simple. For the Javascript, you just need to add a new class to the text area. For the CSS, you need to make the '.fullscreen' class the following:
Now, this doesn't get you the little button in the upper right corner and the styling for the full screen textarea, but it is very functional, very configurable (just style with CSS), and quite small. Add a small button of your own and let the browser do all of the heavy work, by just adding a CSS class.
Oh, and this doesn't break Chrome/webkit's ability to resize the textarea when not in fullscreen mode...
I use a similar fullscreen textarea toggle (actually an ACE editor), that is very simple. For the Javascript, you just need to add a new class to the text area. For the CSS, you need to make the '.fullscreen' class the following:
Now, this doesn't get you the little button in the upper right corner and the styling for the full screen textarea, but it is very functional, very configurable (just style with CSS), and quite small. Add a small button of your own and let the browser do all of the heavy work, by just adding a CSS class.Oh, and this doesn't break Chrome/webkit's ability to resize the textarea when not in fullscreen mode...