jn_meter wrote: ↑
May 13th, 2020, 8:57 pm
I have a skin that that has a meter within which is, among other things, this:
Code: Select all
ToolTipText=%1% ([measure_disk_used_c_gb]GB) used of [measure_disk_total_gb_c] GB; [measure_disk_free_gb_c] GB free
The tooltip text show as e.g. 10 % 124GB of [etc.]
Why the space before the percentage sign? How can I get rid of that space?
Thanks and apologies if I overlook something obvious.
jsmorley wrote: ↑
May 14th, 2020, 12:02 am
Huh. Well I don't see where it is happening right off...
balala wrote: ↑
May 14th, 2020, 8:26 am
Might be because of the formatting options forced on tooltip texts
, possibly even Percentual=0
). If things display correctly in the meter itself (where there is also a Text=%1%
), then the tooltip formatting options is likely "the culprit" for this, especially since in [measure_disk_used_percent_c]
a rounding of the value to a decimal precision of 1
, as forced in tooltips) is performed.
The solution might be to use section variables
instead. I know I always do, in these cases. Something like [measure_disk_used_percent_c:1]
in the TooltipText option and adding DynamicVariables=1
to the original meter.
Let us know if this solves the issue.
: Just tested, this is definitely the culprit. Also, make sure you set NumOfDecimals=1
in the meter, as the value will be rounded to a decimal precision of 0
(the default) even in the meter itself, if the aforementioned option is not present.