Javascript obter largura da tela móvel após a mudança de orientação
Eu estou capturando oorientationchange
evento como este:
$(window).bind( 'orientationchange', function(e){
});
Como posso obter a nova largura e altura da tela em pixels após aorientationchage
?
eu tenteiscreen.width
mas isso não muda, permanece como a largura inicial, mesmo após a mudança de orientação.