jquery - Javascript bug with .height() in chrome -


i have following code (coffeescript) setting height of 1 of divs dynamically content. works firefox , safari. having problems chrome. ive been doing lot of reading , chrome has bug in sense measures heights .height() function differently other browsers. there anyway fix or work arounds has found?

resize = ->   window_height     = $(window).height()    $('.full-height').each ->     elm               = $(this)     wrapper_height    = elm.height()     difference_height = window_height - wrapper_height     new_height        = wrapper_height + difference_height     content_height    = $('#wrapper').height()     offset            = elm.data('offset-height') || 0      if(window_height >= content_height)       elm.css         height: new_height 


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -