Revision: 1916
http://svn.sourceforge.net/vexi/?rev=1916&view=rev
Author: clrg
Date: 2007-07-03 22:12:35 -0700 (Tue, 03 Jul 2007)
Log Message:
-----------
Make text widgets behave a little better
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.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-04 05:11:53 UTC (rev 1915)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/block.t
2007-07-04 05:12:35 UTC (rev 1916)
@@ -220,11 +220,13 @@
v = trapee[arguments.trapname];
v.Enter --= trapee.activeTrap;
}
+ cascade = v;
}
/** sets minimum height of a block */
static.fontFunc = function(v)
{
+ cascade = v;
trapee.fontheight = vexi.ui.font.height(trapee.font, trapee.fontsize,
"dy");
}
@@ -253,6 +255,7 @@
/** trap to set the textual alignment of this block */
static.textalignFunc = function(v)
{
+ cascade = v;
switch(v)
{
case "left":
Modified: widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2007-07-04
05:11:53 UTC (rev 1915)
+++ widgets/trunk/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2007-07-04
05:12:35 UTC (rev 1916)
@@ -174,9 +174,12 @@
/** assign relevant traps/functions to new blocks */
$text.Children ++= function(c)
{
- c.Enter ++= activeTrap;
- c.sync ++= syncBlock;
- c.y ++= syncBlock;
+ if (c != null)
+ {
+ c.Enter ++= activeTrap;
+ c.sync ++= syncBlock;
+ c.y ++= syncBlock;
+ }
cascade = c;
}
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