10 Replies Latest reply on Dec 11, 2007 2:38 AM by dietmar.paulus

    TextInput, how to align text vertically?

    Mike8086
      I have a textfield that I resized to be width=50, height=50. Unfortunately, instead of the line of text the user types appearing in the middle of the box, it is on a line just below the top of the box. I've tryed defining a style where I set the vertical-alignment to "middle" but that has no effect. Is there any way to do this?

      <mx:TextInput
      maxChars="5"
      restrict="123456789"
      styleName="background1"
      width="50"
      height="50"
      />

      .background1 {
      background-color: #f5f5f5;
      font-size: 10px;
      font-weight: bold;
      text-align: center;
      padding: 0px;
      margin: 0px;
      width: 50px;
      border-spacing: 0px;
      border: 0px
      }