<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Button text not centered vertically</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=2730501" />
  <subtitle>Button text not centered vertically</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=2730501</id>
  <updated>2013-05-20T15:23:44Z</updated>
  <dc:date>2013-05-20T15:23:44Z</dc:date>
  <entry>
    <title>Button text not centered vertically</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2730500" />
    <author>
      <name>Russell Mitchell</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=2730500</id>
    <updated>2010-11-10T20:42:48Z</updated>
    <published>2010-11-10T20:42:48Z</published>
    <summary type="html">I'm creating simple buttons on the 7926 as follows:
 
StringItem button= new StringItem( null, "Button", StringItem.BUTTON );
 
The text is centered horizontally, but not vertically.  Instead, it is vertically aligned to the bottom of the button.  I've tried the following, all to no avail:
 
button.setLayout( StringItem.LAYOUT_CENTER );
button.setLayout( StringItem.LAYOUT_VCENTER );
button.setLayout( StringItem.LAYOUT_CENTER | StringItem.LAYOUT_VCENTER );
 
The text is centered properly, by default, in the 7926 simulator.
 
Suggestions?</summary>
    <dc:creator>Russell Mitchell</dc:creator>
    <dc:date>2010-11-10T20:42:48Z</dc:date>
  </entry>
</feed>

