Announcement

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

    Patch for SmartClient 8.0: FormItem icon hover display issue

    In SmartClient 8.0 an issue existed whereby in some situations hover prompts for FormItem icons would fail to be displayed. This could be reproduced when editing by cell and displaying a form item with an icon (with a prompt). Rolling over the icon would fail to display the prompt if approaching the icon was aligned with the edge of the cell being edited and the user rolled the mouse in from that edge.

    Code:
    if (window.isc) {
    if (isc.version.startsWith("SC_SNAPSHOT-2011-01-05/")) {
    
    isc.ListGrid.addProperties({
        stopHover:stopHover:function () {
            var editForm = this.getEditForm();
            if (editForm && (this.getEditForm() == isc.EH.getTarget())) return;
            return this.Super("stopHover", arguments);
        }
    });
    
    isc.DynamicForm.addProperties({
    $11y : function isc_DynamicForm__itemMouseEvent(_1, _2) {
        var _3 = this.$11z, _4 = this.$110, _5 = this.$111, _6 = _1.item, _7 = _1.overTitle, _8 = _1.overIcon;
        if (_1.inactiveContext != null) {
            _6 = null;
            _7 = null;
            _8 = null;
        }
        if (_3 && _3.destroyed) {
            _3 = null;
            this.$11z = null;
            this.$111 = null;
            this.$110 = null;
        }
        if (_6 && _6.destroyed) {
            _6 = null;
            _7 = null;
            _8 = null;
        }
        this.$11z = _6;
        this.$110 = _7;
        this.$111 = _8;
        
        if (_2 == isc.EH.MOUSE_OVER) {
            if (_6) {
                if (_7) {
                    _6.handleTitleOver();
                } else {
                    if (_8) {
                        this.$111 = null;
                    }
                    _6.handleMouseOver();
                }
            }
        } else if (_2 == isc.EH.MOUSE_OUT) {
            if (_3) {
                if (_4) {
                    _3.handleTitleOut();
                } else {
                    if (_5) {
                        _3.$114(_5);
                    }
                    _3.handleMouseOut();
                }
            }
        } else {
            var _9 = _3 != _6 || _4 != _7;
            if (_9) {
                if (_3) {
                    if (_4) {
                        _3.handleTitleOut();
                    } else {
                        if (_5) {
                            _3.$114(_5);
                        }
                        _3.handleMouseOut();
                    }
                }
                if (_6) {
                    if (_7) {
                        _6.handleTitleOver();
                    } else {
                        if (_8) {
                            _6.$113(_8);
                        }
                        _6.handleMouseOver();
                    }
                }
            } else {
                if (_7) {
                    _6.handleTitleMove();
                } else {
                    if (_5 != _8) {
                        if (_5) {
                            _6.$114(_5);
                        }
                        if (_8) {
                            _6.$113(_8);
                        }
                    } else if (_6) {
                        if (_8) {
                            _6.$115(_8);
                        }
                        _6.handleMouseMove();
                    }
                }
            }
        }
    }
    });
    
    } else {
        isc.Log.logWarn("Patch code for SmartClient versions8.0 [full version string: 'SC_SNAPSHOT-2011-01-05/'] " +
                "included in this application. You are running SmartClient version " +
                isc.version + ". The patch code will have no effect in this application and should be removed.");
    }
    
    }
    Last edited by Isomorphic; 22 Mar 2011, 12:59.

    #2
    Patch updated 2011.03.22 to also resolve the more general case where form items' hovers would intermittently not show when the form item was rendered inside a ListGrid as an editor.

    Comment

    Working...
    X