Inserting a scrollbar #247
-
Hello, is the any special configuration when creating a scrollbar? From my understanding if my component layout is like:
I should run Edit
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hmm, it might be issue with the bindings I'm creating, even with trying to recreate test_scrollbar.c it's not working |
Beta Was this translation helpful? Give feedback.
-
The scrollbar is displayed when the content size exceeds the container size. If you want to always display the scroll bar, we need to modify the source code of the scroll bar, add a property to express always display the scroll bar, and then modify the if statement here. LCUI/src/gui/widget/scrollbar.c Lines 407 to 416 in 85958e4
|
Beta Was this translation helpful? Give feedback.
-
Turns out the issue was because my parent containers did not have height property set correctly, after setting all of them to |
Beta Was this translation helpful? Give feedback.
Turns out the issue was because my parent containers did not have height property set correctly, after setting all of them to
height: 100%
, it worked as expected