Commit 2bf74a76 authored by Rafael Monnerat's avatar Rafael Monnerat

Modified planning_coordinates to show blocs height.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17736 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ddc1ee0
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<string>Products.PythonScripts.PythonScript</string> <tuple/>
<string>PythonScript</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -604,8 +601,12 @@ for block_object in planning.content:\n ...@@ -604,8 +601,12 @@ for block_object in planning.content:\n
if context.PlanningBox_isFrozenBlock(block=block_object):\n if context.PlanningBox_isFrozenBlock(block=block_object):\n
block_dict[\'border-width\'] = 0\n block_dict[\'border-width\'] = 0\n
\n \n
block_dict[\'width\'] = block_object.position_x.relative_range * size_planning_width\n
block_dict[\'height\'] = block_object.position_y.relative_range * size_planning_height\n block_dict[\'height\'] = block_object.position_y.relative_range * size_planning_height\n
if block_object.parent_activity.height is not None:\n
block_dict[\'height\'] = block_dict[\'height\']*block_object.parent_activity.height\n
\n
block_dict[\'width\'] = block_object.position_x.relative_range * size_planning_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-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 block_dict[\'margin-top\'] = block_object.position_y.relative_begin * size_planning_height\n
\n \n
...@@ -844,6 +845,7 @@ return properties_structure\n ...@@ -844,6 +845,7 @@ return properties_structure\n
<string>bot_list</string> <string>bot_list</string>
<string>center</string> <string>center</string>
<string>info_name</string> <string>info_name</string>
<string>_inplacevar_</string>
<string>top_id</string> <string>top_id</string>
<string>bot_id</string> <string>bot_id</string>
<string>center_content_list</string> <string>center_content_list</string>
......
434 441
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment