@@ -10,7 +10,7 @@ import {Label} from 'ui/label';
1010import { TextField } from 'ui/text-field' ;
1111import { TextView } from 'ui/text-view' ;
1212import { Switch } from 'ui/switch' ;
13- import { Layout } from 'ui/layouts/layout' ;
13+ import { LayoutBase } from 'ui/layouts/layout-base ' ;
1414import gestures = require( "ui/gestures" ) ;
1515import { NativeScriptView } from 'nativescript-angular/renderer' ;
1616import { AST } from 'angular2/src/change_detection/parser/ast' ;
@@ -128,8 +128,8 @@ export class ViewNode {
128128
129129 this . configureUI ( ) ;
130130
131- if ( this . parentNativeView instanceof Layout ) {
132- let parentLayout = < Layout > this . parentNativeView ;
131+ if ( this . parentNativeView instanceof LayoutBase ) {
132+ let parentLayout = < LayoutBase > this . parentNativeView ;
133133 if ( attachAtIndex != - 1 ) {
134134 console . log ( 'Layout.insertChild' ) ;
135135 let indexOffset = 0 ;
@@ -262,8 +262,8 @@ export class ViewNode {
262262
263263 if ( childNode . nativeView ) {
264264 let nativeParent = childNode . nativeView . parent ;
265- if ( nativeParent instanceof Layout ) {
266- ( < Layout > nativeParent ) . removeChild ( childNode . nativeView ) ;
265+ if ( nativeParent instanceof LayoutBase ) {
266+ ( < LayoutBase > nativeParent ) . removeChild ( childNode . nativeView ) ;
267267 } else {
268268 nativeParent . _removeView ( childNode . nativeView ) ;
269269 }
0 commit comments