Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valuebox too narrow #117

Closed
softfoot opened this issue Mar 11, 2017 · 4 comments
Closed

Valuebox too narrow #117

softfoot opened this issue Mar 11, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@softfoot
Copy link

softfoot commented Mar 11, 2017

Using the HTML below and a value of 1012 the box displayed is too narrow and the borders overlay the end digits. This was an issue with previous versions too.

I am using 2.1.2.

Regards,
Dave

data-major-ticks="950, 960, 970, 980, 990, 1000, 1010, 1020, 1030, 1040, 1050"
data-type="radial-gauge"
data-title="Barometer"
data-units="mBar"
data-width="200"
data-height="200"
data-value-int="0"
data-value-dec="0"
data-width="200"
data-height="200"
data-value-int="0"
data-value-dec="0"
data-min-value="950"
data-max-value="1050"
data-highlights="false"
@Mikhus
Copy link
Owner

Mikhus commented Mar 11, 2017

Sure, that is why you have an ability to specify yourself the required with of the value box, read here: https://canvas-gauges.com/documentation/user-guide/configuration#value-box-options

Please, take a look at the valueBoxWidth parameter

Regards,
Mike

@Mikhus
Copy link
Owner

Mikhus commented Mar 11, 2017

BTW it looks like a bug of auto-calculations for the box width, so, please, treat a previous comment as a workaround you can use to bypass those limits, but in the future versions it has to be fixed, so I keep this issue as a bug to fix.

And big thanks to your contributions! :)

@Mikhus Mikhus added the bug label Mar 11, 2017
@Mikhus Mikhus self-assigned this Mar 11, 2017
@Mikhus Mikhus added this to the 2.1.3 milestone Mar 11, 2017
@softfoot
Copy link
Author

softfoot commented Mar 11, 2017 via email

@Mikhus
Copy link
Owner

Mikhus commented Mar 11, 2017

Sure, thank you very much!

Fixed in branch v2.1.3

@Mikhus Mikhus closed this as completed Mar 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants