onScreenWidthChange function

Game development with Board Game Arena Studio
User avatar
Brainchild
Posts: 71
Joined: 31 January 2014, 19:42

Re: onScreenWidthChange function

Post by Brainchild »

Tisaac wrote: 07 July 2020, 00:13 Then just use a conditional and call the function again in the onScreenWidthChange :

Code: Select all

updateSize: function(){
if($('game_play_area')){
  var w = dojo.position('game_play_area')['w'];
  ...
},


onScreenWidthChange: function(){
 this.updateSize();
 }
Good idea, I will try that.
Post Reply

Return to “Developers”