Created
December 2, 2015 21:31
-
-
Save rezoner/a37ad11eda27bfab0ccd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class GUIList extends GUIWidget { | |
constructor(args) { | |
super(args); | |
this.scrollable = true; | |
this.layout = { | |
/* type of layout */ | |
type: "vertical"; | |
/* should layout grow with content */ | |
grow: true, | |
/* children dimensions */ | |
width: "max", | |
height: 24, | |
/* margin between children */ | |
margin: 4 | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment