File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export * from "../layout-base";
55
66function validateArgs ( element : View ) : View {
77 if ( ! element ) {
8- throw new Error ( "element cannot be null or undefinied ." ) ;
8+ throw new Error ( "element cannot be null or undefined ." ) ;
99 }
1010 return element ;
1111}
@@ -291,7 +291,7 @@ export class GridLayoutBase extends LayoutBase implements GridLayoutDefinition {
291291 }
292292
293293 protected invalidate ( ) : void {
294- // handled natively in android and overriden in ios.
294+ // handled natively in android and overridden in ios.
295295 }
296296
297297 set rows ( value : string ) {
Original file line number Diff line number Diff line change @@ -136,6 +136,10 @@ export class GridLayout extends GridLayoutBase {
136136
137137 this . eachLayoutChild ( ( child , last ) => {
138138 let measureSpecs = this . map . get ( child ) ;
139+ if ( ! measureSpecs ) {
140+ return ;
141+ }
142+
139143 this . updateMeasureSpecs ( child , measureSpecs ) ;
140144 this . helper . addMeasureSpec ( measureSpecs ) ;
141145 } ) ;
Original file line number Diff line number Diff line change @@ -131,12 +131,12 @@ export class ProxyViewContainer extends LayoutBase implements ProxyViewContainer
131131 const oldLayout = < LayoutBase > oldParent ;
132132
133133 if ( addingToParent && newLayout instanceof LayoutBase ) {
134- this . eachChildView ( ( child ) => {
134+ this . eachLayoutChild ( ( child ) => {
135135 newLayout . _registerLayoutChild ( child ) ;
136136 return true ;
137137 } ) ;
138138 } else if ( oldLayout instanceof LayoutBase ) {
139- this . eachChildView ( ( child ) => {
139+ this . eachLayoutChild ( ( child ) => {
140140 oldLayout . _unregisterLayoutChild ( child ) ;
141141 return true ;
142142 } ) ;
You can’t perform that action at this time.
0 commit comments