Center align diagram.TextBox

3 posts, 1 answers
  1. Casper
    Casper avatar
    9 posts
    Member since:
    Feb 2015

    Posted 14 Mar Link to this post

    Hi
    I am trying to center align a TextBox in a diagram.

    I tried using http://docs.telerik.com/kendo-ui/api/javascript/dataviz/diagram/layout#configuration-alignContent, however there is very little information available on how to use it and I couldn't get it to work.

    I also tried creating an html template and applying css styles (vertical-align: center / margin:0 auto) to it to center the text and it messes up the diagram completely.

    I can't seem to create a dojo snippet at this time. Please edit the Diagram example (http://demos.telerik.com/kendo-ui/diagram/index) and center the text.

  2. Answer
    Daniel
    Admin
    Daniel avatar
    2118 posts

    Posted 16 Mar Link to this post

    Hi,

    Similar example is available here. I also created an example based on the basic usage demo that uses the Layout to center the text.

    Regards,
    Daniel
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Casper
    Casper avatar
    9 posts
    Member since:
    Feb 2015

    Posted 16 Mar in reply to Daniel Link to this post

    Thank you!
Back to Top