Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • joharny
    replied
    Hello!!

    I'm using StaticTextItem to create a detail, I have this:

    public class DLabel extends StaticTextItem {
    public DLabel(String titulo) {
    super();
    setTitle(titulo);
    setTitleStyle("detalle_titulo");
    setTitleAlign(Alignment.LEFT);
    setTextBoxStyle("detalle-texto");
    setWrapTitle(false);
    setValue("-");
    }
    }

    In other class I have:

    lblNomb = new DLabel("Nombre: ");
    lblCi = new DLabel("Cédula: ");
    lblEmail = new DLabel("Correo Electrónico: ");

    The detail is:

    Nombre: Pedro Martínez
    Cédula: 11.523.446
    Correo Electrónico: aaaaaaaaaa@gmail.com

    Now, the detail is good, the problem is, delete the space that exist between "Nombre: ", "Cédula: " and value of this DLabel...

    The Result I want is:
    Nombre: Pedro Martínez
    Cédula: 11.523.446
    Correo Electrónico: aaaaaaaaaa@gmail.com


    What properties should have the DLabel class?


    Thanks in advance!!!...

    Leave a comment:


  • Isomorphic
    replied
    Now fixed (will be public in the next nightly)

    Leave a comment:


  • martintaal
    replied
    Bump, also present in 8.1 build of 25-09.

    gr. Martin

    Leave a comment:


  • martintaal
    started a topic StaticTextItem uses non-defined

    StaticTextItem uses non-defined

    Hi,
    I noticed an error which resulted in the   to be shown in a static text item. In the StaticTextItem there is this code:
    if (asHTML && (internalValue == null || internalValue == isc.emptyString)
    && value == this._$nbsp)

    but this._$nbsp; is not defined, it is defined in Canvas.js but a form item (like static text item) does not inherit from Canvas and therefore this member is not defined.

    Noticed in 8.1 nightly from 9th of September.

    gr. Martin
    Last edited by martintaal; 20 Sep 2011, 08:04.
Working...
X