Revision: 1767
http://svn.sourceforge.net/vexi/?rev=1767&view=rev
Author: clrg
Date: 2007-03-29 11:21:47 -0700 (Thu, 29 Mar 2007)
Log Message:
-----------
Make vexi.widget.border respect padding/margin like other widgets
Modified Paths:
--------------
widgets/trunk/org.vexi.widgets/src/vexi/widget/border.t
Modified: widgets/trunk/org.vexi.widgets/src/vexi/widget/border.t
===================================================================
--- widgets/trunk/org.vexi.widgets/src/vexi/widget/border.t 2007-03-29
18:20:38 UTC (rev 1766)
+++ widgets/trunk/org.vexi.widgets/src/vexi/widget/border.t 2007-03-29
18:21:47 UTC (rev 1767)
@@ -1,6 +1,6 @@
<!-- Copyright 2006 - see COPYING for details [LGPL] -->
-<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns:theme="vexi.theme">
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.theme"
xmlns:rdrt="vexi.util.redirect">
<meta:doc>
<name>Border Widget</name>
<desc>Adds a border to your boxes</desc>
@@ -17,5 +17,24 @@
</usage>
</meta:doc>
- <theme:border />
+ <ui:box redirect="$content">
+ <pad id="margin">
+ <border id="widget">
+ <pad id="pad">
+ <ui:box id="content" />
+ </pad>
+ </border>
+ </pad>
+
+ // glue code
+
+ rdrt..addRedirect(thisbox, $content, "cols", "rows", "font",
"fontsize", "text", "textcolor");
+ rdrt..addRedirect(thisbox, $margin, "margin", "marginleft",
"marginright", "margintop", "marginbottom");
+ rdrt..addRedirect(thisbox, $pad, "fill", "padding", "paddingleft",
"paddingright", "paddingtop", "paddingbottom");
+ rdrt..addRedirect(thisbox, $widget, "border", "depth");
+
+ if ($widget.margin) $margin.margin = $widget.margin;
+ if ($widget.padding) $pad.padding = $widget.padding;
+
+ </ui:box>
</vexi>
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn