Announcement

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

    How style the validation error hover?

    Hope this one gets more recognition than my recent posts How to implement nice tooltips (hover) in list grid cells? and Which setting is responsible for ellipsis? that are both still unanswered :(

    This here http://www.smartclient.com/smartgwt/...idation_regexp shows how to validate data. The hover on the exclamation image is nice but at 100px it's too narrow.

    I was looking for means to make it wider? The hover is a 100%-table placed in a <div> that whose inline style mandates width=100px. While the actual table cell <td> uses the CSS class 'formHover', which I can override, the cell can't be wider than the surrounding div which SmartGWT set to 100px...

    Any hints?
    Last edited by fhisg; 9 May 2012, 14:36.

    #2
    There goes another question unanswered...wonder if paid support would help

    Comment


      #3
      Yes, people with paid support get every question answered. But from a brief look at your questions you're diving into the DOM instead of reading docs and could solve these on your own if you looked at the docs more.

      Comment


        #4
        Originally posted by Isomorphic
        ...you're diving into the DOM instead of reading docs and could solve these on your own if you looked at the docs more.
        I don't do one /instead/ of the other. I do one /after/ the other. I'm one of those who do actually read docs. However, that doesn't guarantee that I always find what I'm looking for - even if it might be documented. Could be more specific please.

        Comment


          #5
          I had this problem too, I wanted the hover to be somewhat wider and indeed, the surrounding table prevented this.

          My usual approach of diving into the code of SmartClient itself worked in this case. The non-obfuscated code of it is actually available in some debug folder in smartgwt.jar. When I grepped through it, I found out this width is simply controlled by DynamicForm.setItemHoverWidth(...) or FormItem.setHoverWidth(...).

          In the rare cases there aren't methods for setting a particular parameter, use JSOHelper of add the appropriate JSNI methods yourself.

          Some documentation pointers:
          http://www.smartclient.com/smartgwt/....lang.Integer)
          http://www.smartclient.com/smartgwt/....lang.Integer)

          Comment


            #6
            Finally, something useful. Thank you, mate! I'm glad I'm not the only one who finds himself digging through SmartGwt HTML/source...

            Comment


              #7
              The result of digging through implementation details was to discover a documented API. Save time - use search on the docs. Searching for "hover width" would have hit these APIs immediately.

              Comment

              Working...
              X