Immediate-Mode-UI / Nuklear

A single-header ANSI C immediate mode cross-platform GUI library
https://immediate-mode-ui.github.io/Nuklear/doc/index.html
Other
9.06k stars 542 forks source link

No vertical spacing between edittext and widget #539

Open wave9d opened 1 year ago

wave9d commented 1 year ago

So I have an edit text component and a line drawn with a widget. I want the line to go right under the edit text component without ANY spacing. Is this achivable with what nuklear offers at the moment ?

This is what I managed to do so far, but I want no spacing between the two. image

dumblob commented 1 year ago

Without looking at the source/API, if the horiz. bar/line does not allow the padding/spacing to be changed (either by ctx.blabla or directly in the function interface), then you can easily copy & paste the function into your code, rename it and change the padding to your own values. Nuklear is really hackable.

A better option would be to add the padding setting to ctx.blabla (if it is not yet supported) and make a PR to this repo :wink:.

wave9d commented 1 year ago

Sorry, I meant vertical spacing.

dumblob commented 1 year ago

Yes, I understood (based on your picture). My reply above thus holds :wink:.