mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-12-01 16:56:34 +01:00
加上有效性判断
This commit is contained in:
@@ -320,6 +320,9 @@ static void ScrollBar_UpdateSize( LCUI_Widget w )
|
||||
int size, box_size;
|
||||
LCUI_ScrollBar scrollbar = w->private_data;
|
||||
LCUI_Widget slider = scrollbar->slider;
|
||||
if( !scrollbar->box ) {
|
||||
return;
|
||||
}
|
||||
if( scrollbar->direction == SBD_HORIZONTAL ) {
|
||||
if( scrollbar->layer ) {
|
||||
size = scrollbar->layer->box.outer.width;
|
||||
|
||||
Reference in New Issue
Block a user