Announcement

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

    SectionStackSection: icon always without suffix

    Hi Isomorphic,

    I have a very strange problem. (using v12.0p_2018-11-22/PowerEdition Deployment (built 2018-11-22))

    For every SectionStackSection in app I sets the icon with command setIcon("src"), but that icon always has the same "src", never gets one of the four suffixs as it's written in the docs.

    The same happens even in the Developer Console! (using original load_skin.js from 2018-10-09 12.0p)

    Click image for larger version

Name:	image_11898.png
Views:	90
Size:	181.3 KB
ID:	255984


    In 11.1 version works fine.
    Do you maybe have assumptions why this is happening?

    Best regards
    Pavo

    #2
    The SectionStackSections are AutoChildren that are subclasses if Button. If you turned off stateful behavior either for the autochildren via the autochild default system, or as modified class defaults for one of the base classes of SectionStackSection, you could create this effect.

    Comment


      #3
      I use original load_skin.js from version 2018-10-09 12.0p.
      As far as I know, I'm not changing any properties from class related with SectionStackSection.

      With completely the same code, this is not happening in 11.1p version.
      But even if I'm changing some properties, the same effect should occur in the 11.1p version, right?

      Comment


        #4
        And if I use load_skin.js from version "2018-10-06_base_version_6.1p" in 12.0, problem is still there.

        Comment


          #5
          Our guess would be that the change in framework defaults, or component-specific defaults, is simply not in the load_skin.js file. It need not be.

          But if you really think this is a framework problem, just show us how to reproduce it.

          Comment


            #6
            Hi Isomorphic,

            the same happens in BuildInDS. (using v12.0p_2018-11-22/PowerEdition Deployment (built 2018-11-22))


            Click image for larger version

Name:	BuildInDs_bug.png
Views:	63
Size:	149.8 KB
ID:	256010

            Code:
            package com.smartgwt.sample.client;
            
            import com.google.gwt.core.client.EntryPoint;
            import com.smartgwt.client.Version;
            import com.smartgwt.client.core.KeyIdentifier;
            import com.smartgwt.client.util.Page;
            import com.smartgwt.client.util.PageKeyHandler;
            import com.smartgwt.client.util.SC;
            import com.smartgwt.client.widgets.IButton;
            import com.smartgwt.client.widgets.Window;
            import com.smartgwt.client.widgets.events.ClickEvent;
            import com.smartgwt.client.widgets.events.ClickHandler;
            import com.smartgwt.client.widgets.layout.VLayout;
            
            public class BuiltInDS extends VLayout implements EntryPoint {
                private IButton recreateBtn;
            
                public void onModuleLoad() {
                    KeyIdentifier debugKey = new KeyIdentifier();
                    debugKey.setCtrlKey(true);
                    debugKey.setKeyName("D");
            
                    Page.registerKey(debugKey, new PageKeyHandler() {
                        public void execute(String keyName) {
                            SC.showConsole();
                        }
                    });
            
                    setWidth100();
                    setHeight100();
            
                    recreateBtn = new IButton("Recreate");
                    recreateBtn.addClickHandler(new ClickHandler() {
                        @Override
                        public void onClick(ClickEvent event) {
                            new MyWindow().show();
                        }
                    });
                    addMember(recreateBtn);
                    new MyWindow().show();
                    draw();
                }
            
                private class MyWindow extends Window {
            
                    public MyWindow() {
                        setWidth(800);
                        setHeight(600);
                        setMembersMargin(0);
                        setModalMaskOpacity(70);
                        setTitle(" (" + Version.getVersion() + "/" + Version.getSCVersionNumber() + ")");
                        SC.logWarn(" (" + Version.getVersion() + "/" + Version.getSCVersionNumber() + ")");
                        setShowMinimizeButton(false);
                        setIsModal(true);
                        setShowModalMask(true);
                        centerInPage();
            
                    }
                }
            }
            Best regards
            Pavo

            Comment


              #7
              Hi Isomorphic,

              this problem has been resolved in the latest version (v12.0p_2018-11-27)!

              Best regards
              Pavo


              Comment

              Working...
              X