Alright, so now I have a text area I want to automatically resize in two dimensions, in much the same way my text divs do. More so, I want them to continue to do this as people type or remove text from them. Is this possible? I know that for autosizing in general you need to use javascript, and I found a plethora of options that will do that for me, but they all expand height only. Is there one that does width and height? :/
Conversation
Notices
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 15:00:29 EDT ☭⚑ Comrade Angles ⚑☭
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 15:01:27 EDT ☭⚑ Comrade Angles ⚑☭
I could write my own, obviously, but I'd rather use a pre-built one. If I do end up writing my own though, should I make it a separate module for other peoples use, or is that not worth the effort? :/
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 15:19:08 EDT ☭⚑ Comrade Angles ⚑☭
Hmm. Well, I found a solution, or at least a partial one. It's kind of a hack, but I just go and set the text area width equal to the width for the text div that came before it. This works for editing large summaries, but not for writing them in the first place. :/
-
☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 16:56:54 EDT ☭⚑ Comrade Angles ⚑☭
Alright, I ended up using one of the auto-resizing with an additional event handler to resize width too. It's a bit of a hack, but it works. :/
-
-
-