Hey Guys,
I created some Buttons. I dont want that the text is centered vertical or
horizontal.
I though that this should be no problem, but I was wrong.
The API said for the attribute "center":
"Whether the content should be rendered centrally when to much space is
available. *Affects both axis*."
The API is lying ;) It effects not both axis, just the horizontal. But I
want also kill the vertical center.
Here is a link to a
http://demo.qooxdoo.org/devel/playground/#%7B%22code%22%3A%22%250Avar%2520button%2520%253D%2520new%2520qx.ui.form.Button(%2522Hello%2520World%253Cbr%253Ewhy%2520I%27m%2520vertical%2520centered%253F%2522).set(%257B%250A%250Arich%253A%2520true%252C%250Acenter%253A%2520false%252C%250AminHeight%253A%2520100%250A%250A%257D)%253B%250A%250A%250Avar%2520doc%2520%253D%2520this.getRoot()%253B%250A%250A%250Adoc.add(button%252C%250A%257B%250A%2520%2520left%2520%253A%252050%252C%250A%2520%2520top%2520%2520%253A%252050%250A%257D)%253B%250A%250A%22%2C%20%22mode%22%3A%22ria%22%7D
Demo .
Any suggestions?
--
View this message in context: http://qooxdoo.678.n2.nabble.com/Button-Text-should-no-more-centered-vertical-tp7241485p7241485.html
Sent from the qooxdoo mailing list archive at Nabble.com.
|