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:
parent
9e80022e2e
commit
38062233a5
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue