Closed Bug 517809 Opened 16 years ago Closed 15 years ago

Bespin will continue to grow, if no height is specified for parent.

Categories

(Skywriter Graveyard :: Editor, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: cers, Assigned: pcwalton)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a2pre) Gecko/20090917 Ubuntu/9.04 (jaunty) Namoroka/3.6a2pre Build Identifier: http://bitbucket.org/alexi/bespin/ f7ff038bcfcc+ Because the paint() method will try to match the size of the parent container, unless this is styled to an explicit height, Bespin will end up chasing an ever increasing height, until browser becomes unresponsive due to giant canvas element. Reproducible: Always Steps to Reproduce: 1. Use Bespin embedded on unstyled div (see attached test case) Actual Results: Bespin grows 4px on each paint() Expected Results: Bespin starts with default/minimum height
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.2) Gecko/20090803 Ubuntu/9.04 (jaunty) Shiretoko/3.5.2 Confirmed.
There is other weird behavior if you're embedding an editor and you attach it to a node without a height. We should guard against this. Here's another test for this: take a Bespin Embedded package edit sample.html remove class="bespin" from the editor div in the console, run: embed = tiki.require("bespin:embed"); embed.useBespin("editor"); You won't see anything, because there's no height on the div. If you give the div a height via the DOM view in Firebug, you'll see the editor, but it will behave crazily. Regardless, Bespin should make sure that it has a height.
Assignee: nobody → jwalker
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Target Milestone: --- → 0.5.1
Reassigning to Patrick. I think this *might* have been taken care of with the work that Patrick did, but I want to confirm.
Assignee: jwalker → pwalton
This bug had been targeted at a milestone that has already been released. Either this bug missed that milestone, or this bug was never closed after it had been fixed. Please check to see which of the two it is and adjust this bug accordingly. [This is a mass comment. To filter bugmail, use the term 'bespin-old-milestone'.]
This bug is fixed.
Marking as RESOLVED FIXED, per comment 5. If anyone has a specific changeset or version number, please note it in a comment.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.