File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/ccui/uiwidgets/scroll-widget Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
344344 addChild : function ( widget , zOrder , tag ) {
345345 if ( ! widget )
346346 return false ;
347- if ( this . _isInContainer ( widget ) === false )
347+ if ( this . _clippingEnabled && this . _isInContainer ( widget ) === false )
348348 widget . _inViewRect = false ;
349349 zOrder = zOrder || widget . getLocalZOrder ( ) ;
350350 tag = tag || widget . getTag ( ) ;
@@ -417,7 +417,7 @@ ccui.ScrollView = ccui.Layout.extend(/** @lends ccui.ScrollView# */{
417417 this . _moveChildPoint . x = locContainer . x + offsetX ;
418418 this . _moveChildPoint . y = locContainer . y + offsetY ;
419419 this . _innerContainer . setPosition ( this . _moveChildPoint ) ;
420- if ( this . _innerContainer . _children . length !== 0 )
420+ if ( this . _clippingEnabled && this . _innerContainer . _children . length !== 0 )
421421 this . updateChildren ( ) ;
422422 } ,
423423
You can’t perform that action at this time.
0 commit comments