Skip to content

Commit 6da98ae

Browse files
authored
Remove redundant code in calc_masonry example (#807)
Fixes #796
1 parent 84dce88 commit 6da98ae

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

masonry/examples/calc_masonry.rs

-6
Original file line numberDiff line numberDiff line change
@@ -198,17 +198,11 @@ impl Widget for CalcButton {
198198
ctx.mutate_later(&mut self.inner, move |mut inner| {
199199
SizedBox::set_border(&mut inner, Color::WHITE, 3.0);
200200
});
201-
// FIXME - This is a monkey-patch for a problem where the mutate pass isn't run after this.
202-
// Should be fixed once the pass spec RFC is implemented.
203-
ctx.request_anim_frame();
204201
}
205202
Update::HoveredChanged(false) => {
206203
ctx.mutate_later(&mut self.inner, move |mut inner| {
207204
SizedBox::set_border(&mut inner, Color::TRANSPARENT, 3.0);
208205
});
209-
// FIXME - This is a monkey-patch for a problem where the mutate pass isn't run after this.
210-
// Should be fixed once the pass spec RFC is implemented.
211-
ctx.request_anim_frame();
212206
}
213207
_ => (),
214208
}

0 commit comments

Comments
 (0)