Announcement

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

    HTMLFlow / Pane styleName problem

    Hi,

    On HTMLFlow and HTMLPane setStyleName() is not working.
    It has no effect. Class is still "normal".
    Code:
    html.addStyleName("content");
    Tested on
    5.0p 2014-09-11

    Best regards
    Mariusz Goch

    #2
    setStyleName() not addStyleName(). addStyleName() is not a SmartGWT API.

    Comment


      #3
      This methods are inherited from:
      com.smartgwt.client.widgets.Canvas

      So how they are not SmartGWT?
      Style "normal" is also typical for SmartGWT.

      And what about this example:
      http://www.smartclient.com/smartgwt/showcase/#effects_lf_css

      This is SmartGWT API.
      And on 5.0p 2014-09-25 is working fine.

      Best regards
      Mariusz Goch

      Comment


        #4
        addStyleName is in turn inherited from GWT's UIObject, we override it to prevent GWT from trying to manipulate a DOM it doesn't understand. The docs for it just tell you to call setStyleName(), which is also what the sample you referred to does...

        Just use setStyleName() as the docs tell you, as the sample does and as we just reiterated - how could this be a problem?

        Comment


          #5
          Just to clarify. It's not a problem.
          The sample code in first post maybe was misleading.
          I tested both this functions with no effect on previous version.

          But on version 5.0p 2014-09-25 problem was solved.
          So there is no problem :)

          Best regards
          Mariusz Goch

          Comment

          Working...
          X