Orientation change button align from right to left


hi,

 

on vertical view want button aligned right,

and when horizontal, align button left

 

i have put code in orientationchange event:

 

if(window.innerheight > window.innerwidth){

    sym.$("btndeal").css('right', '10px');  // vertical

} else {

   sym.$("btndeal").css('left', '80px');  // horizontal

}

 

i open site in vertical mode, button looks good,

change orientation horizontal button change position, looks good

now put vertical again, time button wrong, stayed left, should go right.

any change in orientation button keeps left

please help, im doing wrong?

 

thanks



More discussions in Edge Animate CC


adobe

Comments

Popular posts from this blog

Internal Server Errors - Joomla! Forum - community, help and support

CS6でファイルが開けません

Acrobat 8 Installation, and Activation from CS2 download page