Revision: 3095
          http://vexi.svn.sourceforge.net/vexi/?rev=3095&view=rev
Author:   clrg
Date:     2008-08-20 17:19:55 +0000 (Wed, 20 Aug 2008)

Log Message:
-----------
More accurate popbox placement for option/combo

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/combo.t
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/option.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/combo.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/combo.t   
2008-08-20 16:56:30 UTC (rev 3094)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/combo.t   
2008-08-20 17:19:55 UTC (rev 3095)
@@ -63,11 +63,13 @@
         }
         
         thisbox.surfaceWidth = function(dx, sw) {
-            v_popbox.surface_x = vexi.math.min(dx+2, vexi.math.max(0, 
sw-v_popbox.width));
+            v_popbox.surface_x =
+                vexi.math.min(dx+marginleft, vexi.math.max(0, 
sw-v_popbox.width));
         }
         
         thisbox.surfaceHeight = function(dy, sh) {
-            v_popbox.surface_y = vexi.math.min(dy+height-2, 
sh-v_popbox.height);
+            v_popbox.surface_y =
+                vexi.math.min(dy+height-marginbottom, sh-v_popbox.height);
         }
         
     </lib:widget.combo>

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/option.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/option.t  
2008-08-20 16:56:30 UTC (rev 3094)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/option.t  
2008-08-20 17:19:55 UTC (rev 3095)
@@ -57,11 +57,13 @@
         }
         
         thisbox.surfaceWidth = function(dx, sw) {
-            v_popbox.surface_x = vexi.math.min(dx+2, vexi.math.max(0, 
sw-v_popbox.width));
+            v_popbox.surface_x =
+                vexi.math.min(dx+marginleft, vexi.math.max(0, 
sw-v_popbox.width));
         }
         
         thisbox.surfaceHeight = function(dy, sh) {
-            v_popbox.surface_y = vexi.math.min(dy+height-2, 
sh-v_popbox.height);
+            v_popbox.surface_y =
+                vexi.math.min(dy+height-marginbottom, sh-v_popbox.height);
         }
         
         thisbox.v_container ++= function(v) {


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to