Hi,
I noticed that (at least on Windows) you have to manually force a repaint to
show that an element was removed from its parent. Here's my code, it's the
example on page 47 of the manual.
Shoes.app do
stack :margin => 20, :width => 250 do
subtitle "Shoes Notebook"
para "Add a note."
@add = edit_line
button "Save" do
@notes.append do
para @add.text, " ",
link("delete") { |x| x.parent.remove }
end
@add.text = ""
end
end
@notes = stack :margin => 20, :width => -250
end
When an element is deleted, it is still showing. When you resize the window
or add another element, it does disappear.
I made a video of my experiments with Shoes which also contains the bug.
Have a look at http://www.vimeo.com/1357485, the bug appears between 3:00
and 3:04. The element disappears when I resize the window.
I noticed with the same code on Linux that deleting an element is really
slow (or maybe it's also a repaint issue?).
Thanks!
-- Jo