Skip to content

Commit

Permalink
Deploying to gh-pages from @ 6d41902 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
kl-botsu committed Nov 8, 2023
1 parent 205aed1 commit 36c3e62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/src/gooey/tree.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@

<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>layout(<span class="kw-2">&amp;</span><span class="self">self</span>, widget: WidgetId) -&gt; <span class="prelude-ty">Option</span>&lt;Rect&lt;Px&gt;&gt; {
<span class="kw">let </span>data = <span class="self">self</span>.data.lock().map_or_else(PoisonError::into_inner, |g| g);
data.nodes[<span class="kw-2">&amp;</span>widget].layout
data.nodes.get(<span class="kw-2">&amp;</span>widget).and_then(|widget| widget.layout)
}

<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">fn </span>reset_render_order(<span class="kw-2">&amp;</span><span class="self">self</span>) {
Expand Down Expand Up @@ -703,7 +703,7 @@
<span class="kw">let </span>data = <span class="self">self</span>.data.lock().map_or_else(PoisonError::into_inner, |g| g);
<span class="kw">let </span><span class="kw-2">mut </span>hits = Vec::new();
<span class="kw">for </span>id <span class="kw">in </span>data.render_order.iter().rev() {
<span class="kw">if let </span><span class="prelude-val">Some</span>(last_rendered) = data.nodes[id].layout {
<span class="kw">if let </span><span class="prelude-val">Some</span>(last_rendered) = data.nodes.get(id).and_then(|widget| widget.layout) {
<span class="kw">if </span>last_rendered.contains(point) {
hits.push(ManagedWidget {
widget: data.nodes[id].widget.clone(),
Expand Down Expand Up @@ -821,8 +821,8 @@
new_widget,
) {
(<span class="prelude-val">Some</span>(old_widget), <span class="prelude-val">Some</span>(new_widget)) <span class="kw">if </span>old_widget == new_widget.id() =&gt; <span class="prelude-val">Err</span>(()),
(<span class="prelude-val">Some</span>(old_widget), <span class="kw">_</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>(ManagedWidget {
widget: <span class="self">self</span>.nodes[<span class="kw-2">&amp;</span>old_widget].widget.clone(),
(<span class="prelude-val">Some</span>(old_widget), <span class="kw">_</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="self">self</span>.nodes.get(<span class="kw-2">&amp;</span>old_widget).map(|node| ManagedWidget {
widget: node.widget.clone(),
tree: tree.clone(),
})),
(<span class="prelude-val">None</span>, <span class="kw">_</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="prelude-val">None</span>),
Expand Down

0 comments on commit 36c3e62

Please sign in to comment.