How to remove gap between graph element #918
-
Beta Was this translation helpful? Give feedback.
Answered by
CamilleLetavernier
Feb 13, 2023
Replies: 1 comment 1 reply
-
Hi, The default layout options for hbox and vbox include a non-0 gap, as well as some padding. If you're using one of these layouts, you may need to explicitly set these values to 0 in the layout options. Child nodes may also have their own padding, which may or may not need to be set to 0. protected override getDefaultLayoutOptions(): HBoxLayoutOptionsExt {
return {
resizeContainer: true,
paddingTop: 5,
paddingBottom: 5,
paddingLeft: 5,
paddingRight: 5,
paddingFactor: 1,
hGap: 1,
[...] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
wss29
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
The default layout options for hbox and vbox include a non-0 gap, as well as some padding. If you're using one of these layouts, you may need to explicitly set these values to 0 in the layout options. Child nodes may also have their own padding, which may or may not need to be set to 0.