crisu83 / yiistrap

Twitter Bootstrap for the Yii PHP framework.
http://www.getyiistrap.com
BSD 3-Clause "New" or "Revised" License
286 stars 176 forks source link

Offset calculation not working for active form and checkboxes #286

Open duncanmapes opened 9 years ago

duncanmapes commented 9 years ago

When a form is in horizontal mode, and there are check boxes, instead of an offset being added, two different column width classes are being added to the single column.

duncanmapes commented 9 years ago

so...i found the issue here...the regex in switchColToOffset is not working with the extra space that is passed through with the class name. Either need to trim the class value or update the regex to account for the space

crisu83 commented 9 years ago

Thanks for letting us know of this issue. Maybe you create a PR that fixes the issue as well?