Commit b57f801
fix: hide diagram scrollbars via CSS on .mxgraph element
Root cause: GraphViewer's layout phase compares the diagram's natural
bounds against the container width and sets overflow:auto on the
.mxgraph element itself — after any JS setTimeout callbacks. Previous
attempts targeted child elements (.geDiagramContainer) that don't
exist, or used JS timing that ran before GraphViewer's layout.
CSS !important on .mxgraph directly overrides inline styles regardless
of when GraphViewer sets them. The diagram content is already scaled
to fit (resize:true), so hiding overflow loses nothing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 0cc8ccb commit b57f801
2 files changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | 319 | | |
324 | 320 | | |
325 | 321 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| 296 | + | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| |||
0 commit comments