Announcement

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

    How to set the auto fit width on hover of ListGridField items.

    Hi,
    We have upgraded Smart Gwt-4.0p to Smart Gwt-4.1p(10 March 2015)
    Browser : IE10, 11, Google Chrome: 43.0.2357.37 m.

    How to set the auto fit width on hover of ListGridField items(title).
    I have set the properities of listGridField.setShowHover(true);
    But tooltip is displaying on multiple line.
    I have set the properities listGrid.setHoverWidth(300) and listGrid.setHoverWrap(false) for Listgrid.

    But in this case if title length is less then displaying big tootltip.

    I want to set hover tooltip width as auto .

    Thanks.

    #2
    There was an issue with hoverWidth not being respected, already fixed. You both need to get the latest patched version and at the very least update to 9.1 (but you should really update to 10.0).

    Comment


      #3
      Hi

      I tested in updated version 10.0. Still i am getting same issue.

      I have provided the sample code and screen shot for above issue.

      Please suggest me how to fix this issue.

      There is no properties to set minHoverWidth and maxhoverwidth.

      Thanks.
      Attached Files

      Comment


        #4
        This has been fixed for builds dated June 13 and later - if you now call ListGrid.setHoverWidth(1), the hover will autoSize, on a single line, to all three of your test values.

        Comment


          #5
          Hi,

          Thank you for your reply.
          If i set ListGrid.setHoverWidth(1), the hover is autoSize, on a single line working. But width is very less. Our expectation is it should display ListGridField header width and hover width should autoSize.

          Thanks.

          Comment


            #6
            Hovers are sized to the hoverWidth, then wrap. You can autosize by not setting a hoverWidth at all, then there will be no wrapping. If you want something other than these two options, you'll have to be very specific about the expected behavior, and provide examples of how particular pieces of text should be wrapped.

            Comment

            Working...
            X