From: http://jmtd.net/ Date: Thu, 14 May 2009 12:31:18 +0000 (-0400) Subject: javascript rough approach X-Git-Url: https://scripts.mit.edu/gitweb/www/ikiwiki.git/commitdiff_plain/b67bd17a0326d16d9e0962b0e98a2b5704f4bd73 javascript rough approach --- diff --git a/doc/todo/edit_form:_no_fixed_size_for_textarea.mdwn b/doc/todo/edit_form:_no_fixed_size_for_textarea.mdwn index 526523dcd..4ca07c633 100644 --- a/doc/todo/edit_form:_no_fixed_size_for_textarea.mdwn +++ b/doc/todo/edit_form:_no_fixed_size_for_textarea.mdwn @@ -30,3 +30,5 @@ On longer pages its not very comfortable to edit pages with such a small box. Th >>> So, other than a javascript-based resizer, some very tricky and invasive CSS >>> seems to be needed. Please someone let me know if you succeed in doing that. >>> --[[Joey]] + +>>>> the javascript approach would need to work something like this: you need to know about the "bottom-most" item on the edit page, and get a handle for that object in the DOM. You can then obtain the absolute position height-wise of this element and the absolute position of the bottom of the window to determine the pixel-difference. Then, you set the height of the textarea to (current height in px) + determined-value. This needs to be re-triggered on various resize events, at least for the window and probably for other elements too. I may have a stab at this at some point. -- [[Jon]]