Permalink
Browse files

web: load button 100% width

when the window is resized
  • Loading branch information...
Zielak committed Oct 23, 2015
1 parent ae77d0f commit b870cda934923f325292e53d12a0fb7f549f2a57
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Main.hx
@@ -383,7 +383,13 @@ class Main extends luxe.Game {
x: 4, y: 35, w: 340, h: 28,
#end
});
#if desktop
layout.anchor(load_button, right, right);
#elseif web
layout.margin(load_button, right, fixed, 4);
#end
load_button.onmouseup.listen(function(e,_){
#if desktop
load_tileset( path_input.text );

0 comments on commit b870cda

Please sign in to comment.