Closed Bug 550693 Opened 14 years ago Closed 14 years ago

Editor "blinks" when jumping back from the commandline

Categories

(Skywriter Graveyard :: Editor, defect)

Other
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julian.viereck, Unassigned)

References

Details

Attachments

(1 file)

If you focus the commandline in Bespin and then focus the editor again, you 
will notice that the editor "blinks" for a short time (blinking = you see the 
blue background color of SproutCore).
Attached patch Fix the bug.Splinter Review
The blinking is caused by the fact, that jumping back to the editor resizes the editor's canvas. If you resize a HTML5 canvas, the entire content is dropped. Due to this, the editor is back again AFTER the first repainting, which takes at least 33ms. In the meantime, you see the background of the SproutCore app.

To fix this, I've prevented the canvas from downsizing.
Attachment #430847 - Flags: review?(pwalton)
Whiteboard: needs-pull
Having the canvas unable to shrink is annoying, but I don't see any way around it short of having multiple canvases (which is something we probably want to do at some point). For now this patch is fine. Applied as changeset 158cbe613fd1.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: needs-pull
Attachment #430847 - Flags: review?(pwalton) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: