Announcement

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

    Getting correct label size

    Hi,

    I have trouble getting the actual size of a Label component.
    What I tryed was:
    .getVisibleWidth()
    .getWidth()
    .getDefaultWidth()
    .getInnerContentWidth()
    As a result I always get the default value 100.

    layout values for my label are:
    (border: 1px solid #E5E5E5;)
    position: absolute;
    height: auto;
    width: auto;

    Any suggestions?

    #2
    When are you calling this? Before it gets drawn?

    Comment


      #3
      You are right. I just ckecked the isDrawn() value and it returns false.

      A manual draw() call solved the problem. :)

      Thanks for helping me.
      Last edited by java123; 28 Jul 2010, 00:15.

      Comment

      Working...
      X