Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix unit tests
- Add view.copy()
- Loading branch information
Showing with 37 additions and 6 deletions.
|@@ -1,4 +1,10 @@|
|window.view = new View|
|viewA = new View x:20, y:20, width:100, height:100|
|viewB = new View x:0, y:0, width:50, height:50, superView: viewA|
|viewC = new ImageView x:20, y:20, width:20, height:20, superView: viewB|
|viewC.image = "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-ash2/t1.0-1/c188.8.131.52/s50x50/1002105_10201417272264644_314604545_s.jpg"|
|view.draggable = true|
|for i in [1..10]|
|viewACopy = viewA.copy()|
|viewACopy.x = 25 * i|
|viewACopy.y = 25 * i|