Added 'overflow' attribute, got infolog.edit loading

This commit is contained in:
Andreas Stöckel 2011-08-22 16:37:04 +00:00
parent 4869ca9a49
commit c5acfe93bf
7 changed files with 40 additions and 13 deletions

View File

@ -70,6 +70,12 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode, {
"type": "string", "type": "string",
"default": et2_no_init, "default": et2_no_init,
"description": "CSS Class which is applied to the dom element of this node" "description": "CSS Class which is applied to the dom element of this node"
},
"overflow": {
"name": "Overflow",
"type": "string",
"default": et2_no_init,
"description": "If set, the css-overflow attribute is set to that value"
} }
}, },
@ -264,6 +270,16 @@ var et2_DOMWidget = et2_widget.extend(et2_IDOMNode, {
} }
this["class"] = _value; this["class"] = _value;
},
set_overflow: function(_value) {
this.overflow = _value;
var node = this.getDOMNode(this);
if (node)
{
$j(node).css("overflow", _value);
}
} }
}); });

View File

@ -214,10 +214,7 @@ var et2_arrayMgr = Class.extend({
return val == checkVal; return val == checkVal;
} }
et2_debug("log", "Parse bool expression: ", _expression, val);
return et2_evalBool(val); return et2_evalBool(val);
// return val != '' && (typeof val != "string" || val.toLowerCase() != "false");
}, },
openPerspective: function(_owner, _root, _col, _row) openPerspective: function(_owner, _root, _col, _row)

View File

@ -169,8 +169,15 @@ function et2_checkType(_val, _type, _attr)
if (_val !== "") if (_val !== "")
{ {
// TODO: Parse JS code properly // TODO: Parse JS code properly
try
{
return new Function(_val); return new Function(_val);
} }
catch(e)
{
et2_debug("error", "Error while parsing JS event handler code", e);
}
}
return null; return null;
} }

View File

@ -137,7 +137,7 @@ var et2_hbox = et2_baseWidget.extend({
this._buildAlignCells(); this._buildAlignCells();
// Call the inherited assign function // Call the inherited assign function
this._super.call(this, arguments); this._super.apply(this, arguments);
}, },
getDOMNode: function(_sender) { getDOMNode: function(_sender) {

View File

@ -149,7 +149,7 @@ var et2_selectbox = et2_inputWidget.extend({
}); });
et2_register_widget(et2_selectbox, ["menupopup", "listbox", "select-cat", et2_register_widget(et2_selectbox, ["menupopup", "listbox", "select-cat",
"select-account"]); "select-account", "select-percent"]);
/** /**
* Widget class which represents a single option inside a selectbox * Widget class which represents a single option inside a selectbox

View File

@ -203,6 +203,11 @@ var et2_widget = Class.extend({
}, },
assign: function(_obj) { assign: function(_obj) {
if (typeof _obj._children == "undefined")
{
et2_debug("log", "Foo!");
}
// Create a clone of all child elements of the given object // Create a clone of all child elements of the given object
for (var i = 0; i < _obj._children.length; i++) for (var i = 0; i < _obj._children.length; i++)
{ {
@ -267,7 +272,8 @@ var et2_widget = Class.extend({
} }
else else
{ {
throw(_node, " is not supported by this widget class!"); et2_debug("error", this, "Widget is not supported by this widget class", _node);
// throw("Widget is not supported by this widget class!");
} }
}, },

View File

@ -25,9 +25,10 @@ body, table, td {
} }
#container { #container {
margin: 10px; /*margin: 10px;
border: 1px solid gray; border: 1px solid gray;*/
padding: 10px; padding: 10px;
background-color: white;
} }
.header { .header {
@ -97,10 +98,6 @@ div.et2_hbox_right {
margin: 2px 0 2px 0; margin: 2px 0 2px 0;
} }
.et2_grid td {
border: 1px dashed silver;
}
.et2_label { .et2_label {
color: #101050; color: #101050;
font-size: 10pt; font-size: 10pt;
@ -259,3 +256,7 @@ table.et2_grid {
border-collapse: collapse; border-collapse: collapse;
} }
.et2_grid td {
/* border: 1px dashed silver;*/
}