Jump to content

WidgetScrollBox hiding options


photo

Recommended Posts

Hi,

I found a bug in WidgetScrollBox related to hiding the scrollbars.

According to the manual: 

  • 0 to always render a vertical scroll bar.

But judging from the C++ code (WidgetScrollBox.cpp l:358), vhidden = 0 will never be respected
 

if(vscroll_enabled) {
	if(vscroll_hidden == 1) {
		if ...
		else if(vscroll_hidden == 0) vscroll_show = 1;
		else ....
	} else {
		...
	}
} 

Since else if(vscroll_hidden == 0) is inside if(vscroll_hidden == 1) it will never pass.

Regards,
Paul

Link to comment
×
×
  • Create New...