Changes between Version 2 and Version 3 of Ticket #3666, comment 112
- Timestamp:
- 11/07/16 12:08:46 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3666, comment 112
v2 v3 43 43 2. How does the formatter know the required width? 44 44 45 a. It does not. The caller checks the width and if it's too wide, it truncates. The truncation probably automatically happens with the (~) symbol in the middle. It's consistent across the UI, although not quite flexible and the data shown there is not as informative as it could be.45 a. It does not. The caller checks the width of the formatted string and if it's too wide, it truncates. The truncation probably automatically happens with the (~) symbol in the middle. It's consistent across the UI, although not quite flexible and the data shown there is not as informative as it could be. 46 46 47 47 b. It's passed on as an argument. The formatting method is allowed to take this into account in various ways, e.g. omitting some decimals or omitting the space in front of the unit if width is too small.