Custom editor never shrinks

I am making an online editor 2T8H, which came from the Punycode code xn--2t8h corresponding to the :memo: emoji.

Introductions apart, I have a bug in my editor’s custom unnamed code editor library with scrollbars. Neither does my syntax highlighting pre neither does my textarea want to shrink to reasonable height, so once you overflow the editor, the scrollbar stays the same even when you un-overflow it. It’s just there until you reload it.

So, what’s my problem? Here is the source code, can you help? And no, switching to another premade editor like Ace or Codemirror is not an answer for me, sorry. :sweat_smile:

Nevermind, solved it with some min-width: min-content and 1em.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.