webgui/www/extras/yui-ext/source/grid/editor/SelectEditor.js
JT Smith 4f68a0933c added YUI and YUI-ext
fixed the resizable text area with IE problem
fixed the ad space with IE problem
merged the 7.2.0 and 7.1.4 change logs
2006-11-07 23:15:57 +00:00

20 lines
No EOL
587 B
JavaScript

/*
* YUI Extensions
* Copyright(c) 2006, Jack Slocum.
*
* This code is licensed under BSD license.
* http://www.opensource.org/licenses/bsd-license.php
*/
YAHOO.ext.grid.SelectEditor = function(element){
element.hideFocus = true;
YAHOO.ext.grid.SelectEditor.superclass.constructor.call(this, element);
};
YAHOO.extendX(YAHOO.ext.grid.SelectEditor, YAHOO.ext.grid.CellEditor);
YAHOO.ext.grid.SelectEditor.prototype.fitToCell = function(box){
if(YAHOO.ext.util.Browser.isGecko){
box.height -= 3;
}
this.element.setBox(box, true);
};