fix(example): fix text bbox not being correctly computed

This is due to the fact, that we used display: none while the initial
version of the diagram was loaded. By changing that to visibility:
hidden, browsers can correctly compute the bbox of text elements.
This commit is contained in:
Nico Rehwaldt 2014-04-28 15:32:19 +02:00
parent 9e80022e2e
commit 38062233a5
1 changed files with 7 additions and 3 deletions

View File

@ -51,15 +51,19 @@ a:link {
}
.content:not(.with-error) .error,
.content .canvas,
.content.with-error .canvas,
.content.with-error .intro,
.content.with-diagram .intro {
display: none;
}
.content .canvas,
.content.with-error .canvas {
visibility: hidden;
}
.content.with-diagram .canvas {
display: block;
visibility: visible;
}
.buttons {