[Erp5-report] r20503 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Apr 14 17:12:42 CEST 2008


Author: rafael
Date: Mon Apr 14 17:12:41 2008
New Revision: 20503

URL: http://svn.erp5.org?rev=20503&view=rev
Log:
Added variables and improve comments to make it easier to understand.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/planning_coordinates.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/planning_coordinates.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/planning_coordinates.xml?rev=20503&r1=20502&r2=20503&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/planning_coordinates.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/planning_coordinates.xml Mon Apr 14 17:12:41 2008
@@ -577,12 +577,13 @@
 \n
 \n
 # processing blocks in the planning content\n
+block_border_width = 1\n
 for block_object in planning.content:\n
   block_dict = {\n
     \'position\': \'absolute\',\n
     \'border-style\': \'solid\',\n
     \'border-color\':  \'#53676e\',\n
-    \'border-width\': 1,\n
+    \'border-width\': block_border_width,\n
   }\n
 \n
   if block_object.error == 1:      # task has error (not validated)\n
@@ -605,8 +606,12 @@
   if block_object.parent_activity.height is not None:\n
     block_dict[\'height\'] = block_dict[\'height\']*block_object.parent_activity.height\n
   \n
-  # width - border width * 2 to prevent wrong edition\n
-  block_dict[\'width\'] = (block_object.position_x.relative_range * size_planning_width) - 2\n
+  # the width - border width * 2 (left and right)\n
+  # When you edit one object, border was added as a part of size. So 2*border-width pixels \n
+  # was added every edition. 2 is because left and right.\n
+  # the width - border-width * 2 (left and right)\n
+  block_dict[\'width\'] = (block_object.position_x.relative_range * size_planning_width) - \\\n
+                                                                           (2*block_border_width)\n
   #block_dict[\'height\'] = block_object.position_y.relative_range * size_planning_height\n
   block_dict[\'margin-left\'] = block_object.position_x.relative_begin * size_planning_width\n
   block_dict[\'margin-top\'] = block_object.position_y.relative_begin * size_planning_height\n
@@ -837,6 +842,7 @@
                             <string>lane_axis_info_dict</string>
                             <string>lane_axis_line_dict</string>
                             <string>content_dict</string>
+                            <string>block_border_width</string>
                             <string>block_object</string>
                             <string>block_dict</string>
                             <string>context</string>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=20503&r1=20502&r2=20503&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision Mon Apr 14 17:12:41 2008
@@ -1,1 +1,1 @@
-526
+527




More information about the Erp5-report mailing list