The setWidth() function was accidentally overriding with the default width regardless.