Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

feature request: extend NO_SCROLLBAR with horizontal/vertical options

Open Ryder17z opened this issue 1 year ago • 12 comments

Sometimes a scrollbar can appear that has no effect because it scrolls 0px in that direction. The same is true for very small "scrollable distances" like a couple of pixels.

Thus it would be nice to be able to disable just one of the scrollbars and keep the other if the content inside is big enough to require it.

Ryder17z avatar Jun 18 '24 11:06 Ryder17z

Could you provide an example to debug?

RobLoach avatar Jun 27 '24 17:06 RobLoach

I'm working on a tool with a layout of 3 columns and here is an example that renders the same issue with a lot less code: https://gist.github.com/Ryder17z/402376fa1a509269363182724c1ef922 this example just uses sdl_render

Ryder17z avatar Jun 28 '24 23:06 Ryder17z

I'm also experiencing the same behavior of some occasional 0px horizontal scrollbars using the SDL renderer.

Just bumping this for now, but in the future I would love to see this fixed. If I get the time I could tackle it myself if needed.

zoogies avatar Aug 15 '24 16:08 zoogies

I ran the above demo you provided, and it does seem suspect. Resizing the window by 1 pixel either shows or hides the horizontal scrollbar, and there's also some scrollbar padding on the right-hand side....

Screenshot from 2024-08-15 12-52-02

RobLoach avatar Aug 15 '24 16:08 RobLoach

I'm also experiencing the same behavior of some occasional 0px horizontal scrollbars using the SDL renderer.

Just bumping this for now, but in the future I would love to see this fixed. If I get the time I could tackle it myself if needed.

Bumping doesn't really work given how Github works and for this repo there is no "stalebot" to worry about.

Ryder17z avatar Aug 15 '24 19:08 Ryder17z

Bumping = expressing I experience the same thing and putting it back on Rob's radar.

Maybe "nudging" is more appropriate :)

zoogies avatar Aug 15 '24 21:08 zoogies

#686

PROP65 avatar Sep 08 '24 00:09 PROP65

#686

This could be useful for some, but I don't think it fundamentally solves this specific problem

zoogies avatar Sep 08 '24 15:09 zoogies

Fair point. It should be investigated deeper.

On Sun, 8 Sept 2024, 17:09 Ryan Zmuda, @.***> wrote:

#686 https://github.com/Immediate-Mode-UI/Nuklear/pull/686

This could be useful for some, but I don't think it fundamentally solves this specific problem

— Reply to this email directly, view it on GitHub https://github.com/Immediate-Mode-UI/Nuklear/issues/653#issuecomment-2336720887, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPIOP2HQSVYEUTKHQWUIX3ZVRSEJAVCNFSM6AAAAABJP3ZYYWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZWG4ZDAOBYG4 . You are receiving this because you authored the thread.Message ID: @.***>

Ryder17z avatar Sep 08 '24 19:09 Ryder17z

I ran the above demo you provided, and it does seem suspect. Resizing the window by 1 pixel either shows or hides the horizontal scrollbar, and there's also some scrollbar padding on the right-hand side....

Screenshot from 2024-08-15 12-52-02

Come to think of it, the color picker widget also seem to have a weird padding issue like that, possibly related.

Ryder17z avatar Sep 12 '24 04:09 Ryder17z

Is this isolated to specifically the sdl2 renderer backend?

zoogies avatar Dec 29 '24 21:12 zoogies

Is this isolated to specifically the sdl2 renderer backend?

As far as I can tell: Unconfirmed, further testing needed.

Ryder17z avatar Dec 29 '24 22:12 Ryder17z