-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[timeline] item text doesn't stay close to its box #243
Comments
An ItemRange is displayed with a container having a border and background color (class A better css solution would be adjusting the css of the contents: .vis.timeline .item.range .content {
text-align: center;
width: 100%;
} But there still is a problem then, as the width of the contents dynamically change and the RangeItem calculates the width of the contents only once. I think there is no solution for this right now. We can either:
|
I just noticed the "fixed #243..." commit for this reported issue. But it seems the fix is actually that the 'center' alignment (or any other in general) now works better --- the dynamic re-positioning of the text so it remains visible and close to the box as one zooms in/out or drag the area is not supported except for align='left' . Correct? |
Yes, that's correct, only "left" align smartly positions the contents of a |
…`align` for range items.
text-align: center
(orright
) for isdiv.range
class(vis 3.1.0)
The text was updated successfully, but these errors were encountered: