Fixes resize bug where li's new width would not be set.