I got this kind of code in LaTeX using TikZ:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{block} = [draw,rectangle,fill=blue!50,text width=8em, text centered,minimum height=8mm,node distance=10em]
\tikzstyle{line} = [draw, -latex']
\begin{tikzpicture}
\tikzstyle{every node}=[font=\small]
\node [block, xshift=-3em](start){ST\_Category};
\node [block, right of=start, xshift=5em](process1){Process 1};
\end{tikzpicture}
\end{document}
Blocks got fixed size. All i want to achieve to have those block auto resize to fit longer text. So the block getting withders when text is longer. For example if in first block text will be "DASDASDADASDASDASDAS" it will go over the block borders which will look bad. I what those blocks to automatically expand when the text is longer.
