Index: samples/ui_lib/view/view.dart |
diff --git a/samples/ui_lib/view/view.dart b/samples/ui_lib/view/view.dart |
index 6387d171af5a759e917833bacf738d8e739a5938..d46d35a2ba5a13946750c9093f20d9e8f5373b09 100644 |
--- a/samples/ui_lib/view/view.dart |
+++ b/samples/ui_lib/view/view.dart |
@@ -108,7 +108,7 @@ class View implements Positionable { |
* document or not. |
*/ |
bool get isInDocument() { |
- return _node !== null && node.document.contains(node); |
+ return _node !== null && node.document.body.contains(node); |
} |
/** |