Added ghost elements to avoid focusing on them
This commit is contained in:
@@ -57,6 +57,10 @@ impl Element for Div {
|
||||
element.inject(|w| w.component(NoRenderRoot));
|
||||
}
|
||||
|
||||
fn is_ghost(&mut self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
|
||||
@@ -78,6 +78,10 @@ impl Element for FlexRow {
|
||||
element.inject(|w| w.component(NoRenderRoot));
|
||||
}
|
||||
|
||||
fn is_ghost(&mut self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
@@ -123,6 +127,10 @@ impl Element for FlexCol {
|
||||
element.inject(|w| w.component(NoRenderRoot));
|
||||
}
|
||||
|
||||
fn is_ghost(&mut self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
|
||||
@@ -57,6 +57,10 @@ impl Element for Heading {
|
||||
self.children.push(element.clone());
|
||||
}
|
||||
|
||||
fn is_ghost(&mut self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
|
||||
@@ -21,6 +21,10 @@ impl Element for String {
|
||||
scope.draw_text(0, 0, self);
|
||||
}
|
||||
|
||||
fn is_ghost(&mut self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
fn as_any(&self) -> &dyn std::any::Any {
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user