Method: CDK::ITEMLIST#updateFieldWidth
- Defined in:
- lib/cdk/components/itemlist.rb
#updateFieldWidth ⇒ Object
450 451 452 453 454 |
# File 'lib/cdk/components/itemlist.rb', line 450 def updateFieldWidth want = self.maximumFieldWidth + 1 have = @box_width - @label_len - 2 * @border_size @field_width = [want, have].min end |