| 87 | } |
| 88 | |
| 89 | int fixWidth() |
| 90 | { |
| 91 | if (text_clip_at > 0 && max_item_width > text_clip_at) |
| 92 | max_item_width = text_clip_at; |
| 93 | |
| 94 | for (auto it = list.begin(); it != list.end(); it++) |
| 95 | { |
| 96 | it->text = pad_string(it->text, max_item_width, false); |
| 97 | } |
| 98 | |
| 99 | return getMaxItemWidth(); |
| 100 | } |
| 101 | |
| 102 | int getMaxItemWidth() |
| 103 | { |
no test coverage detected