Last modified: 2013-01-18 08:58:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9370 - Resizing of edit box on screen using JavaScript
Resizing of edit box on screen using JavaScript
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: javascript
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-22 10:01 UTC by Jason Spiro
Modified: 2013-01-18 08:58 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jason Spiro 2007-03-22 10:01:45 UTC
When you start to edit a page, a JavaScript should automatically run to grow or
shrink the editing textarea's height to take up 80% of your browser window's
total height.

(This would work best if bug 9369 "Edit page should automatically scroll down a
bit" was also implemented.)
Comment 1 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-03-22 16:26:19 UTC
This is a matter of taste.  Possibly best to have little JavaScript arrows or something so users 
can grow or shrink the edit box to whatever size they like, like vBulletin does.  We could also 
remember this sizing per user (or for anons, per session or whatnot), using a hidden form 
variable (or for anons, maybe a cookie).
Comment 2 Eep² 2007-09-09 16:10:28 UTC
What's the status on this? Is there a 3rd-party javascript that can be implemented in a MediaWiki wiki in the meantime? I'd rather have textareas a configurable size at first (if empty) and automatically expand as necessary (heightwise at least, especially if "edit box has full width" is selected in MediaWiki user preferences).
Comment 3 Jason Spiro 2007-09-16 18:10:47 UTC
(In reply to comment #2)
> Is there a 3rd-party javascript that can be
> implemented in a MediaWiki wiki in the meantime? 

Could we implement this functionality in MediaWiki based on the code attachment to the last post at http://www.webdeveloper.com/forum/showthread.php?t=64005 perhaps[1]?

^ [1].  I tested the attachment that is posted there on IE7.  When I save it to my USB flash drive and view it, a yellow Information Bar appears at top of screen.  It prompts me to enable scripts.  After I say "yes" it works fine and gives me a resizable textarea with nice thick borders to show that it is resizable.  The textarea is resizable on all 4 sides.  I did not test the code in any other browser.  But the code is not free-licensed.  If you email the author to ask that they release it to the public domain, please let us know you did so in this thread to avoid us requesting twice.
Comment 4 Bawolff (Brian Wolff) 2008-11-01 10:39:18 UTC
I don't really see how useful this is, due to the css rule (at least in modern skin) of:

#wpTextbox1 {width:100%}

but anyways, I thought it'd be an interesting js thing to do. So, I made a start on javascript to make this. See [[n:User:Bawolff/sandbox/resizeEditbox/resizeEdit.js]]

See demo at [[n:User:Bawolff/sandbox/resizeEditbox]]. (bearing in mind, its not done yet, so its not perfect, but it does work).


-[[n:user:Bawolff]]
Comment 5 Jesús Martínez Novo (Ciencia Al Poder) 2012-09-14 15:35:05 UTC
Note that some browsers already implement a small area at the bottom-right corner of textareas to allow resizing them.

Firefox can do this. Opera not. Not sure about other browsers.

Resizing the height of the textarea to adapt to window's height could be nice, though. But not sure if that would annoy some users, or would interfere with custom toolbars, etc. If done please make sure it's a user preference option.
Comment 6 Bartosz Dziewoński 2013-01-17 15:10:16 UTC
Opera does this now as well.

I think we should WONTFIX this bug. Many wikis have custom tools above or below edit box; I could see the resizing being annoying.
Comment 7 Andre Klapper 2013-01-18 08:58:03 UTC
Setting WONTFIX.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links