Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ef219f8

Browse files
Fix the whitespace left after a layout removal
1 parent d9edbee commit ef219f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/nativescript-angular/view_node.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {Label} from 'ui/label';
1010
import {TextField} from 'ui/text-field';
1111
import {TextView} from 'ui/text-view';
1212
import {Switch} from 'ui/switch';
13-
import {Layout} from 'ui/layouts/layout';
13+
import {LayoutBase} from 'ui/layouts/layout-base';
1414
import gestures = require("ui/gestures");
1515
import {NativeScriptView} from 'nativescript-angular/renderer';
1616
import {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

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /