Skip to content

Commit

Permalink
web: load button 100% width
Browse files Browse the repository at this point in the history
when the window is resized
  • Loading branch information
Darek Greenly committed Oct 23, 2015
1 parent ae77d0f commit b870cda
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Main.hx
Expand Up @@ -383,7 +383,13 @@ class Main extends luxe.Game {
x: 4, y: 35, w: 340, h: 28, x: 4, y: 35, w: 340, h: 28,
#end #end
}); });
#if desktop
layout.anchor(load_button, right, right); layout.anchor(load_button, right, right);
#elseif web
layout.margin(load_button, right, fixed, 4);
#end


load_button.onmouseup.listen(function(e,_){ load_button.onmouseup.listen(function(e,_){
#if desktop #if desktop
load_tileset( path_input.text ); load_tileset( path_input.text );
Expand Down

0 comments on commit b870cda

Please sign in to comment.