File tree Expand file tree Collapse file tree
apps/app/ui-tests-app/scroll-view
tns-core-modules/ui/scroll-view Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 </Page .actionBar>
77
88 <ScrollView >
9- <StackLayout >
9+ <StackLayout backgroundColor = " teal " >
1010 <GridLayout height =" 30" backgroundColor =" red" />
1111 <GridLayout height =" 30" backgroundColor =" yellow" />
1212 <GridLayout height =" 30" backgroundColor =" green" />
Original file line number Diff line number Diff line change 77
88 <GridLayout >
99 <ScrollView >
10- <StackLayout >
10+ <StackLayout backgroundColor = " teal " >
1111 <GridLayout height =" 30" backgroundColor =" red" />
1212 <GridLayout height =" 30" backgroundColor =" yellow" />
1313 <GridLayout height =" 30" backgroundColor =" green" />
Original file line number Diff line number Diff line change @@ -164,16 +164,14 @@ export class ScrollView extends ScrollViewBase {
164164 nativeView . contentInsetAdjustmentBehavior = 2 ;
165165 }
166166
167- let scrollWidth = width ;
168- let scrollHeight = height ;
167+ let scrollWidth = width + insets . left + insets . right ;
168+ let scrollHeight = height + insets . top + insets . bottom ;
169169 if ( this . orientation === "horizontal" ) {
170- scrollWidth = Math . max ( this . _contentMeasuredWidth + insets . left + insets . right , width ) ;
171- scrollHeight = height + insets . top + insets . bottom ;
170+ scrollWidth = Math . max ( this . _contentMeasuredWidth + insets . left + insets . right , scrollWidth ) ;
172171 width = Math . max ( this . _contentMeasuredWidth , width ) ;
173172 }
174173 else {
175- scrollHeight = Math . max ( this . _contentMeasuredHeight + insets . top + insets . bottom , height ) ;
176- scrollWidth = width + insets . left + insets . right ;
174+ scrollHeight = Math . max ( this . _contentMeasuredHeight + insets . top + insets . bottom , scrollHeight ) ;
177175 height = Math . max ( this . _contentMeasuredHeight , height ) ;
178176 }
179177
You can’t perform that action at this time.
0 commit comments