Immediate-Mode-UI / Immediate-Mode-UI/Nuklear

Show scollbar in canvas.c example?

Open
#472 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
11.4k
Forks
686
Avg merge
4d 1h
Merged PRs (30d)
3

Description

Hi,

I'm trying in vain to show the horizontal and vertical scrollbars in canvas.c example.
I want to have a canvas (the window content) that is twice the size of the window.

And because the canvas would be twice the size, I'd like to have visible scrollbars to view the hidden portion of the said canvas.

I tried getting rid of "NK_WINDOW_NO_SCROLLBAR" in canvas_begin().
I played a bit with different dimensions (trying to make the window smaller than its content) unsuccessfully.

I must say I don't really understand that part. The doc doesn't really seem to say much about **window** scrollbars.
Or I'm perhaps missing something...
In any case, I wondered, since the example is readily available and familiar to many, if I could get some help regarding this.

Thanks!

Contributor guide

Open the contributing guide

Research direction

Start with the canvas.c example and its canvas_begin() call, including the NK_WINDOW_NO_SCROLLBAR flag and the documentation on window scrollbars. Reproduce the attempt to make the canvas twice the window size and determine whether the example or documentation needs a change. Done means the requested horizontal and vertical scrollbar behavior is clearly demonstrated or explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.