Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When the timeline chart is zoom in/out, the label of each state will be modified to fit the width of the state. When the width of the state is smaller than the width of the label, the text is truncated. To determine how much text is truncated, the timeline chart uses the ratio of width of label text / width of state. However, since the width of each charater is different, this ratio does not well-represent how much text can be displayed in the label, causing text to overflow out of the state. The solution is to use a monospace font, in which all characters are of the same width. This commit changes the font-family of the labels from Verdana to monospace. With this change, the browser will default to the monospace font of the OS and make the texts fit within the states. Fixes #224. Signed-off-by: Hoang Thuan Pham <hoang.pham@calian.ca>
- Loading branch information