When setting up my content type and and adding a US Zip Code, I configured the textfield to be length 60 (default). After saving the configuration, I create a new content of the type I just created, and the text field length goes across the screen.
Steps to Repro (assuming module is already installed):
1.) Create Content Type
2.) Add New Field called Zip Code
3.) In the next page (while configuring) leave all values at default (Length should be 60).
4.) Save
5.) Create new content of type that you just created.
Notice that in the node/add page the zip code textfield goes all the way across the screen.
Comments
Comment #1
jenb919 commentedI know this is a bit late but I was having the same problem. When I used fire bug I saw that size was correct but the class wasn't the same as the other text fields. I added the line
'#attributes' => array('class' => 'text'), after '#columns' => $element['#columns'], (on 924) in the function function zipcode_textfield_process($element, $edit, $form_state, $form) { (line 907)
I am using version 6.x-2.9 so the lines may vary.
Comment #2
liam morlandCan you create a patch for this? Should the class really be hard-coded?
Comment #3
liam morland