[broadway] Fix up toplevel content visibility in useToplevel mode

surfaces.canvas may change if we move to another document, so
reupdate the element to show after ensureSurfaceInDocument.
This commit is contained in:
Alexander Larsson 2011-04-08 15:16:32 +02:00
parent fadaced85f
commit e5d8905cd2

View File

@ -433,6 +433,7 @@ function cmdShowSurface(id)
}
ensureSurfaceInDocument(surface, doc);
element = surface.canvas;
} else {
if (surface.frame) {
element = surface.frame;