Announcement

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

    Tooltip Width Matching Size of Text

    SmartGWT version SC_SNAPSHOT-2011-12-05/LGPL Development Only (built 2011-12-05)
    Firefox 7.0.1

    When we do FormItem.setPrompt to set tooltip text, we tend to get extra space at the end of all our tool tips. We see how we can set the width by number of pixels with .setHoverWidth but then we have to know exactly how many pixels wide our text is to insure there is no space in the tooltip box to the right of the text.

    Is there some way we can set this up so that the yellow tooltip box would automatically be just wide enough to hold the text we give it?

    Ed

    #2
    If you set a small width (like 1) your tooltip will be no larger than needed.

    Comment


      #3
      Hmmm, still missing something in my understanding, with this test case code

      Code:
      		VLayout vlayout = new VLayout();
      		
      		final DynamicForm df = new DynamicForm();
      
      		ButtonItem uploadButton = new ButtonItem("Upload");
      		uploadButton.setPrompt("Upload");
      		uploadButton.setHoverWidth(1);
      		df.setFields(uploadButton);
      		
      		vlayout.addMember(df);
      		vlayout.draw();
      I get the attached result, with lots of extra space after the word "Upload".

      Please advise on how to proceed.

      Ed Reddy
      Attached Files

      Comment


        #4
        The snapshot version below doesn't indicate what branch you're working from, but we've addressed this in 3.1d - please retry with a nightly build later than 25/05. Let us know if you need this backporting to 3.0p.

        Comment


          #5
          In fact, we went ahead and backported this to 3.0p anyway - you should see the fixes in both branches from 26/05 onwards.

          Comment

          Working...
          X