#15866 closed defect (fixed)
Textarea: hang when Viewport resize event soon after startup
Reported by: | bill | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | undecided | Milestone: | 1.8.1 |
Component: | Dijit - Form | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | #15616 |
Description (last modified by )
If there's a viewport resize event soon after page load, it can cause an endless loop in the Textarea resize code. Calling Textarea.resize() triggers a Textarea.onresize event, which calls Textarea.resize() again and so forth.
Apply attached patch to Viewport.js and then run dijit/tests/form/test_Textarea.html on IE8. See the CPU peg at 100% and the page get stuck while downloading images for the test.
Attachments (2)
Change History (8)
Changed 9 years ago by
Attachment: | viewport.patch added |
---|
comment:1 Changed 9 years ago by
Blocking: | 15616 added |
---|---|
Description: | modified (diff) |
comment:3 Changed 9 years ago by
Milestone: | tbd → 1.8.1 |
---|
bill, I attached a patch that I was hoping you could test out. The textarea native onresize event should not have been connected to in addition to Viewport.on/resize
Note: See
TracTickets for help on using
tickets.
make Viewport start monitoring viewport size earlier than before, which triggers a "spurious" viewport resize event when a scrollbar appears