Minor change to logic for applying the CSS resize property. Fixes #156