Revision: 1961
http://svn.sourceforge.net/vexi/?rev=1961&view=rev
Author: clrg
Date: 2007-07-08 22:01:08 -0700 (Sun, 08 Jul 2007)
Log Message:
-----------
Fix text widget regressions
- textareas respond to key events again
- fix a moved cascade which invalidated part of a Children trap
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
widgets/trunk/org.vexi.widgets/src/vexi/widget/textarea.t
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
2007-07-09 04:55:06 UTC (rev 1960)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
2007-07-09 05:01:08 UTC (rev 1961)
@@ -208,7 +208,6 @@
/** trap: update new children to identify themselves as the current word */
static.ChildrenFunc = function(v)
{
- cascade = v;
// child added
if (v != null)
{
@@ -221,6 +220,8 @@
var c = trapee[arguments.trapname];
c.Enter --= trapee.activeTrap;
}
+ // need to do this after removal for c to be valid
+ cascade = v;
}
/** sets minimum height of a block */
Modified: widgets/trunk/org.vexi.widgets/src/vexi/widget/textarea.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/vexi/widget/textarea.t 2007-07-09
04:55:06 UTC (rev 1960)
+++ widgets/trunk/org.vexi.widgets/src/vexi/widget/textarea.t 2007-07-09
05:01:08 UTC (rev 1961)
@@ -16,10 +16,11 @@
// glue code
rdrt..addRedirect(thisbox, $margin, "margin", "marginleft",
"marginright", "margintop", "marginbottom");
- rdrt..addRedirect(thisbox, $widget, "action", "enabled", "fill",
"focusable", "focused", "KeyPressed", "KeyReleased",
+ rdrt..addRedirect(thisbox, $widget, "action", "enabled", "fill",
"focusable", "focused",
"padding", "paddingleft",
"paddingright", "paddingtop", "paddingbottom",
"autohidevertical",
"autohidehorizontal", "scrollvertical", "scrollhorizontal");
- rdrt..addRedirect(thisbox, $widget.th_edit, "font", "fontsize",
"insert", "text", "textcolor", "selectAll", "unselectAll" );
+ rdrt..addRedirect(thisbox, $widget.th_edit, "font", "fontsize",
"insert", "text", "textcolor",
+ "selectAll", "unselectAll",
"KeyPressed", "KeyReleased" );
if ($widget.margin) $margin.margin = $widget.margin;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn