Fix setting the height of the review request box for long fields.
Review Request #6154 — Created July 28, 2014 and submitted
The fixes to set the proper widths of the fields broke the heights.
It removed thedefer()call and replaced it with athrottle(). The
defer()is important to the calculations, though, since we schedule a
layout resize after closing CodeMirror fields but before all layout has
settled.This restores the original
_scheduleResizeLayout()function and adds the
throttle there.
Tested adding a lot of text to the Description field and closing it. It no
longer resulted in the text fields overflowing out of the review request box.Tested adding lots of text to the Branch field. Didn't see it cause any
overflow issues.Resized the window. Didn't see any performance issues.
| Description | From | Last Updated |
|---|---|---|
|
This is kind of very wrong. The 100 should be an argument to _.throttle instead of _.defer, and you're missing … |
|
- Change Summary:
-
Fixed this to actually work.
- Commit:
-
15e47d566030fbc34d7b99dd52c773b44b68727ebd6ec5c95be1698d0f461f78cfbc6760eda456e0
Tool: Pyflakes Ignored Files: reviewboard/static/rb/js/views/reviewRequestEditorView.js Tool: PEP8 Style Checker Ignored Files: reviewboard/static/rb/js/views/reviewRequestEditorView.js