Announcement

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

    LinkItem does not show icons set in the setIcons method.

    Trying to use icons with a link item and they are not visible. See the following example.

    1. SmartClient Version: v10.0p_2014-10-22/LGPL Development Only (built 2014-10-22)
    2. FF 24.7 ESR

    Code:
    public class Main implements EntryPoint {
        @Override
        public void onModuleLoad() {
            new DynamicForm(){{
                setFields(new LinkItem(){{
                    setLinkTitle("View");
                    setIcons(new FormItemIcon(){{
                        setSrc("ANY IMAGE");
                        setHeight(16);
                        setWidth(16);
                    }}, new FormItemIcon(){{
                        setSrc("ANY IMAGE");
                        setHeight(16);
                        setWidth(16);
                    }});
                }});
            }}.show();
        }
    }

    #2
    You can see working examples of FormItemIcons in the Showcase.

    If the icons are not visible for you, most likely the images are not available from the URLs you've configured via setSrc() - you can see requests for the images and the responses using the builtin developer tools in your browser (press F12).

    Comment


      #3
      Other FormItems seem to display the icons just fine. I can see the icons where using a TextItem, but the LinkItem is not displaying them.

      Comment


        #4
        We can't reproduce a problem with LinkItem and FormItemIcons running against the latest.

        We don't see any fixes that could have corrected an issue recently, but you should try updating regardless, as the problem may be some kind of corruption in your project.

        Comment


          #5
          LinkItem doesn't show FormItemIcon any more

          We're seeing the same behavior.

          We just upgraded to SmrtGWT Pro 4.1p - Oct 30, 2014 (v9.1p_2014-10-30), and our LinkItems that had icons now don't show the icons any more. (They used to work fine, and the icon src URLs are correct and have not changed.)

          Comment


            #6
            This has been fixed - please retest with a build dated November 13 or later.

            Comment


              #7
              Thanks. FormItemIcons are now displayed again for LinkItems.

              Comment

              Working...
              X