This is a migrated thread and some comments may be shown as answers.

Center align diagram.TextBox

2 Answers 595 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Casper
Top achievements
Rank 1
Casper asked on 14 Mar 2016, 03:26 PM

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 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 16 Mar 2016, 08:26 AM
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!
 
0
Casper
Top achievements
Rank 1
answered on 16 Mar 2016, 08:31 AM
Thank you!
Tags
Diagram
Asked by
Casper
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Casper
Top achievements
Rank 1
Share this question
or