Our textareas that autoexpand (e.g. comment boxes) do not expand at the right rate in Firefox, so you can't see what you're typing when you're typing a lot. It works fine in Chrome.
We've evaluated autoexpanding javascript libraries in the past, and there are a lot of bad ones (inaccurate, performance problems, etc) so I don't want to change which library we are using. Rather, I think/hope that this can be fixed with something like changing how the CSS is applied. There is a possibility that this varies between the allura theme and the SourceForge theme.
created #126: [#4573] Autoexpanding textarea doesn't expand at the right rate in Firefox (2cp)
Related
Tickets:
#4573Originally by: yuriyarhipov
It doesn't work only in the SourceForge theme. How I can install this theme?
Closed #126, it works now on the default theme, did not test it on sftheme but should work. The fix is in 42cc_4573 branch.
Oops, I didn't specify that it was on the comment box that appears when you edit a ticket. That is where it is the worst. That box seems narrower than the regular comment box. Can you fix that too?
I tried the regular comment box again now, and actually can't duplicate an autoexpand problem there, so I'm not sure if that needs to be changed? You found an issue with it though. One problem with the changes so far is that on the 'sftheme' theme, the right side of text boxes are cut off. So we need to either tweak that, or not make those changes (if they aren't necessary)
created #136: [#4573] Autoexpanding textarea doesn't expand when editing a ticket (1cp)
Related
Tickets:
#4573Replies to comments also exhibit this behavior. It probably gets worse when you're a replying to a reply, etc, and the textarea is indented more.
closed #136, pushed changes into 42cc_4573
I don't see any new commits for 4573 on the 42cc_4573 branch. There is an 4270 commit that shouldn't be there though.
That commit was exactly for #4573, sorry, marked it incorrectly. I renamed it and force pushed back into 42cc_4573.
Replying to a nested comment works now, but its still bad when editing a ticket and putting a lot of text in that comment box (in both themes)
Since this is taking a couple of tries, and it's a tricky issue, I'd like make sure we end up with very clean changes at the end. Can you remove any unnecessary changes, and add comments to the remaining changed line(s) so that future developers can know why that bit of code is so important? Thanks
created #147: [#4573] Still bad when editing a ticket and putting a lot of text in that comment box (1cp)
Related
Tickets:
#4573Originally by: yuriyarhipov
I fixed last bug but I found another bugs in jQuery plugin. I've found a very good plugin http://www.jacklmoore.com/autosize
It is faster than elastic and doesn't have performance problems.
It works very well
closed #147, branch - 42cc_4573
Need to address my prior comment: "Since this is taking a couple of tries, and it's a tricky issue, I'd like make sure we end up with very clean changes at the end. Can you remove any unnecessary changes, and add comments to the remaining changed line(s) so that future developers can know why that bit of code is so important? Thanks" A perfect example is in the new line that sets width -50. We should explain what the 50 relates to.
status: code-review --> in-progress
I created #155: Fix the branch, clean changes and make sure eveything works right (1cp).
I guess we'll better create a fresh new branch and cherry pick the commits with proper comments.
closed #155, branch - 42cc_4573a
Originally by: yuriyarhipov
refresh textarea height in a wiki page
~~~~~~~~~~~~~~~~~~~~~~
diff --git a/ForgeWiki/forgewiki/templates/wiki/page_edit.html b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
index 70e0398..224cdda 100644
--- a/ForgeWiki/forgewiki/templates/wiki/page_edit.html
+++ b/ForgeWiki/forgewiki/templates/wiki/page_edit.html
@@ -51,6 +51,7 @@
{% block wiki_extra_js %}
<script type="text/javascript">
/*<![CDATA[*/
+ $('textarea.auto_resize').autosize();
$('span.removable').click(function(e){
var vals = $('#page_edit_form').serialize();
var del_name = $('input', this)[0].name.replace('.id','.delete');
I am going to merge this branch since it is working quite well, especially in Firefox. However, I would like a little more testing. In Safari, Chrome, and IE, the textarea doesn't expand quite far enough. For extra line, the textarea grows by about 95% of a line height, so eventually the top line is only partially visible, and then with even more text typed into the box, whole lines are not visible at the top. Example: http://screencast.com/t/qWoyw1pbvrUM At least the text is hidden at the top of the textarea and not the bottom where you're typing :) If this can be fixed easily (e.g. an hour or so of research) let's do that. If its taking longer than that, we'll leave it as-is. It's good enough.