Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
6211 | minor | always | 01-19-19 10:52 | 01-19-19 10:56 | |
|
|||||
Reporter: | nam | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.59 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.60 | ||
|
|||||
Summary: | 0006211: admin meter graphs are ugly for locales that use a comma as the decimal point | ||||
Description: |
(rep by S. Busch) Most probably it is caused by an environment variable or other locale setting where I run Resin, but I have observed that the meters page in the Resin Administration (php) shows ugly meters and it is because the width was calculated with 266,66 rather than using the . to be 266.66 I have attached a screenshot of this. I would suggest this minor change in $RESIN_HOME/doc/admin/WEB-INF/php/meters_inc.php lines 51 + 52: Currently: $width = 800 / $columns; $height = $width * 0.66; I would suggest to use round: $width = round(800 / $columns); $height = round($width * 0.66); This way the width and height will be integers like 267. |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |