Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

No vertical spacing between edittext and widget

Open wave9d opened this issue 2 years ago • 3 comments

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

wave9d avatar Jan 13 '23 23:01 wave9d

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:.

dumblob avatar Jan 14 '23 16:01 dumblob

Sorry, I meant vertical spacing.

wave9d avatar Jan 14 '23 18:01 wave9d

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

dumblob avatar Jan 14 '23 18:01 dumblob