Announcement

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

  • pavo123
    replied
    Hi Isomorphic,

    I can confirm that this problem has been fixed, thank you!

    Best regards
    Pavo

    Leave a comment:


  • Isomorphic
    replied
    We've now made a change which should address this issue. Please try the next nightly build, dated Nov 13 or above

    Regards
    Isomorphic Software

    Leave a comment:


  • Isomorphic
    replied
    Hi Pavo
    Just a quick note to say we do see this issue and have a developer working on it. We'll follow up again when it is resolved

    Regards
    Isomorphic Software

    Leave a comment:


  • pavo123
    started a topic ".svg" icon enabled/disabled

    ".svg" icon enabled/disabled

    Hi Isomorphic,

    when form is disabled, ".svg" icon stays the same even though the path of the icon changes (it gets suffix "_Disabled").
    Is this a browser bug? Is it possible that you somehow force the recreation of the icon?
    This only applies to ".svg" icons.

    Version: v12.0p_2019-10-29/PowerEdition Deployment (built 2019-10-29)

    Click image for larger version

Name:	SVG disabled icon.gif
Views:	514
Size:	13.2 KB
ID:	259916

    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.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.BooleanItem;
    import com.smartgwt.client.widgets.form.fields.CheckboxItem;
    import com.smartgwt.client.widgets.form.fields.FormItemIcon;
    import com.smartgwt.client.widgets.form.fields.events.ChangedEvent;
    import com.smartgwt.client.widgets.form.fields.events.ChangedHandler;
    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(400);
                setHeight(300);
                setMembersMargin(0);
                setModalMaskOpacity(70);
                setTitle(" (" + Version.getVersion() + "/" + Version.getSCVersionNumber() + ")");
    
                setShowMinimizeButton(false);
                setIsModal(true);
                setShowModalMask(true);
                centerInPage();
    
                FormItemIcon svgIcon = new FormItemIcon();
                svgIcon.setSrc("http://127.0.0.1:8888/builtinds/sc/skins/Enterprise/images/DynamicForm/search_icon.svg");
    
                FormItemIcon pngIcon = new FormItemIcon();
                pngIcon.setSrc("http://127.0.0.1:8888/builtinds/sc/skins/Enterprise/images/DynamicForm/search_icon~2.png");
    
                final BooleanItem bi = new BooleanItem("TEST");
                bi.setIcons(svgIcon, pngIcon);
    
                CheckboxItem cbi = new CheckboxItem("CBI");
                cbi.addChangedHandler(new ChangedHandler() {
                    @Override
                    public void onChanged(ChangedEvent event) {
                        if ((Boolean) event.getValue())
                            bi.disable();
                        else
                            bi.enable();
                    }
                });
                DynamicForm df = new DynamicForm();
                df.setFields(bi, cbi);
                addItem(df);
            }
        }
    }
    Best regards
    Pavo
Working...
X