Go Back   SmartClient Forums > Addendums
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 9th Mar 2011, 13:40
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,712
Default 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; 22nd Mar 2011 at 13:59..
Reply With Quote
  #2  
Old 22nd Mar 2011, 14:00
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 38,712
Default

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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
Patch for 8.0 and 70rc2: Bad Print HTML on buttons and section headers Isomorphic Addendums 0 8th Mar 2011 09:42
Patch for Offline problem in SmartClient 8.0 Isomorphic Addendums 0 9th Feb 2011 01:54
FormItem display issue in Internet Explorer liudi Smart GWT Technical Q&A 2 1st Dec 2010 04:01
SmartClient 7.0rc2 patch for issue with XML Schema date times Isomorphic Addendums 0 24th Feb 2010 15:11
display multiple icon in listgrid taken from datasource nonobuchi Technical Q&A 8 4th Nov 2008 20:05

© 2010,2011 Isomorphic Software. All Rights Reserved