-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the Text Input Expandable #420
Comments
iirc just add resizable="resizable" attribute to do this. Might need some
|
Probably need some css magic to make sure it doesn't fuck with the layout, but yeah. Also, I'll check this out: https://github.com/ro31337/jquery.ns-autogrow |
Actually the resizable property seems to be useless, because browsers put that widget into the lower-right corner and fix the position of the top-left. We want a widget on the top, and the textarea must remain flush with the bottom. Also, the text box is actually invisible, with the background added by the surrounding div#inputFieldContainer. So that needs to grow too. |
Looks perfect to me
|
If the lower right becomes the resize widget, that wouldn't help too much because the textbox is already at the bottom of the screen. It would be even less useful for mobile, but I'm not sure you can put it at the top. |
Iirc, maybe it was bleeding or maybe something else, but a site had it so
|
oh hey, actually I'm not using the native property but jQuery UI. And that has options! :D http://api.jqueryui.com/resizable/#option-handles |
Yeah, it adds inline |
The "alsoResize" is unnecessary since the textarea's 100% width/height settings already make it scale with the container. Removing it also fixes the width problem. The
Now we just need the chat pane and sidebar to shrink so the textarea doesn't overlap them. |
Moving to #160 . |
Unfortunately non-trivial. The resizable widget cannot be triggered programmatically, and trying to manually set heights will run into problems (because the input field and its wrapper both get explicit heights, which are calculated by the library). https://stackoverflow.com/questions/2523522/how-to-trigger-jquery-resizable-resize-programmatically As the best solutions seem to be, alternately, "inject extra code into the library" or "fire the mouse events directly :aaaaa:", I'll put that on ice for now. Maybe this could be a feature. |
It's difficult to proofread submissions to the chat that are greater than two lines, so it would be cool if there was a way to expand the textbox via a click and drag control.
The text was updated successfully, but these errors were encountered: