Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. ☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 15:00:29 EDT ☭⚑ Comrade Angles ⚑☭ ☭⚑ Comrade Angles ⚑☭

    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? :/

    In conversation Saturday, 19-May-2018 15:00:29 EDT from anticapitalist.party permalink
    1. ☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 15:01:27 EDT ☭⚑ Comrade Angles ⚑☭ ☭⚑ Comrade Angles ⚑☭
      in reply to

      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? :/

      In conversation Saturday, 19-May-2018 15:01:27 EDT from anticapitalist.party permalink
      1. ☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 15:19:08 EDT ☭⚑ Comrade Angles ⚑☭ ☭⚑ Comrade Angles ⚑☭
        in reply to

        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. :/

        In conversation Saturday, 19-May-2018 15:19:08 EDT from anticapitalist.party permalink
        1. ☭⚑ Comrade Angles ⚑☭ (angle@anticapitalist.party)'s status on Saturday, 19-May-2018 16:56:54 EDT ☭⚑ Comrade Angles ⚑☭ ☭⚑ Comrade Angles ⚑☭
          in reply to

          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. :/

          In conversation Saturday, 19-May-2018 16:56:54 EDT from anticapitalist.party permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.