Merge lp:~rharding/launchpad/resizing_textarea_919299 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Curtis Hovey on 2012-01-21 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14713 |
| Proposed branch: | lp:~rharding/launchpad/resizing_textarea_919299 |
| Merge into: | lp:launchpad |
| Diff against target: |
61 lines (+28/-1) 3 files modified
lib/lp/app/javascript/formwidgets/resizing_textarea.js (+1/-1) lib/lp/app/javascript/formwidgets/tests/test_resizing_textarea.html (+1/-0) lib/lp/app/javascript/formwidgets/tests/test_resizing_textarea.js (+26/-0) |
| To merge this branch: | bzr merge lp:~rharding/launchpad/resizing_textarea_919299 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | code | 2012-01-21 | Approve on 2012-01-21 |
|
Review via email:
|
|||
Commit Message
[r=sinzui][bug=919299] Correct condition for setting resizing textarea to min height configured.
Description of the Change
= Summary =
There was an issue with the last bug fix that caused the 3rd change to a resizing textarea to resize to the min height for the widget. This then was reverted on the next resize event, and repeated over and over which has a lovely bouncing textarea effect.
== Proposed Fix ==
Correct the condition when we should make sure the textarea changes itself to the min height configured.
== Implementation Details ==
Basically the check should have been < and not !=
== Tests ==
Added a new test to verify the condition
google-chrome lib/lp/
== Demo and Q/A ==
Enter enough text into an inline edit widget that it hits the max size. Then make sure that it sticks there vs reverting between the max and min heights configured.
== Lint ==
Linting changed files:
lib/lp/
lib/lp/
lib/lp/

Thank you for this fix.