Inline Block element with width auto doesn't update

Mindzai

New Member
I am having trouble with inline-block elements with \[code\]width: auto;\[/code\]and programatically changing the height with javascript.Here is a jsFiddle that demonstrates it; http://jsfiddle.net/uJZjB/2/The idea is that if you resize your window, the javascript sets the elements' height, and the inline-block element's width automatically adjusts to fit the content. However, the width does not auto update and it remains at the original width. If you cause the dom to refresh by hiding and showing the element, the widths are updated!Is there a reason why the widths wont update when set this way?Regards,
 
Top