@@ -10,7 +10,7 @@ import {Label} from 'ui/label';
10
10
import { TextField } from 'ui/text-field' ;
11
11
import { TextView } from 'ui/text-view' ;
12
12
import { Switch } from 'ui/switch' ;
13
- import { Layout } from 'ui/layouts/layout' ;
13
+ import { LayoutBase } from 'ui/layouts/layout-base ' ;
14
14
import gestures = require( "ui/gestures" ) ;
15
15
import { NativeScriptView } from 'nativescript-angular/renderer' ;
16
16
import { AST } from 'angular2/src/change_detection/parser/ast' ;
@@ -128,8 +128,8 @@ export class ViewNode {
128
128
129
129
this . configureUI ( ) ;
130
130
131
- if ( this . parentNativeView instanceof Layout ) {
132
- let parentLayout = < Layout > this . parentNativeView ;
131
+ if ( this . parentNativeView instanceof LayoutBase ) {
132
+ let parentLayout = < LayoutBase > this . parentNativeView ;
133
133
if ( attachAtIndex != - 1 ) {
134
134
console . log ( 'Layout.insertChild' ) ;
135
135
let indexOffset = 0 ;
@@ -262,8 +262,8 @@ export class ViewNode {
262
262
263
263
if ( childNode . nativeView ) {
264
264
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 ) ;
267
267
} else {
268
268
nativeParent . _removeView ( childNode . nativeView ) ;
269
269
}
0 commit comments