The New Way to Build! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Learn More

Vis Timeline auto-align does not work on ranges


Greetings,

There seems to be a bug in the implementation of vis-timeline that is exclusive to Metronic. It seems to be related to the CSS, but I can't pinpoint where exactly the problem is.

In default Vis Timeline, the text label of an item that is of the 'range' type (those with a 'start' and 'end') have an auto-align that is dynamic: positioned left and shifted such that the contents is always visible on screen. This normal behavior can be seen with 'item 4' of the basic demo of Vis-Timeline (

<a href=https://preview.keenthemes.com/metronic8/demo4/documentation/general/vis-timeline/basic.html target="_blank">In Metronic</a>, an item of the type 'range' does not behave in this expected way (and thus the label might not be visible even if the event is still happening). What is the way to fix this?

Thank you very much.

>
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

Sorry for the late reply.

Metronic uses the Vis Timeline plugin as it is with no core JS changes. It applies light custom CSS customization. However, could not see the difference in terms of functionality between Metronic's and the Vis Timeline official examples.

Could you please send us some screenshots using https://imgur.com/ to clearly show the issue?

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(