fix for ie8 negative width throwing an error

quick fix for the "invalid argument" thrown by ie8 when a css property like width or height are set to a negative value.