Skip to content

Commit

Permalink
for issues #372 resizable and others.
Browse files Browse the repository at this point in the history
* cocoa implementation
  • Loading branch information
Cecil committed Oct 8, 2017
1 parent 560ce98 commit 8d71d8b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bugs/bug306.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Shoes.app {
image "https://s3.amazonaws.com/static.garfield.com/comics/garfield/2017/2017-01-30.gif"
}
14 changes: 14 additions & 0 deletions bugs/bug372.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Shoes.app(width: 250, height: 100, resizable: false) do
@p = para
flow do
button("enable") do
app.resizable = true
end
button("disable") do
app.resizable = false
end
end
animate do
@p.replace "resizable #{app.resizable}"
end
end

0 comments on commit 8d71d8b

Please sign in to comment.