Changes between Version 2 and Version 3 of Ticket #3666, comment 112


Ignore:
Timestamp:
11/07/16 12:08:46 (7 years ago)
Author:
egmont
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3666, comment 112

    v2 v3  
    43432. How does the formatter know the required width? 
    4444 
    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. 
     45a. 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. 
    4646 
    4747b. 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.