Commit d6056db3 authored by Rafael Monnerat's avatar Rafael Monnerat

Fixed error during on-the-fly edition. When you edit one object, the size of...

Fixed error during on-the-fly edition. When you edit one object, the size of block increase wrongly because border was added as a part of size. So 2 pixels was added every edition.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20492 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7339f5a6
...@@ -604,8 +604,9 @@ for block_object in planning.content:\n ...@@ -604,8 +604,9 @@ for block_object in planning.content:\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 if block_object.parent_activity.height is not None:\n
block_dict[\'height\'] = block_dict[\'height\']*block_object.parent_activity.height\n block_dict[\'height\'] = block_dict[\'height\']*block_object.parent_activity.height\n
\n \n
block_dict[\'width\'] = block_object.position_x.relative_range * size_planning_width\n # width - border width * 2 to prevent wrong edition\n
block_dict[\'width\'] = (block_object.position_x.relative_range * size_planning_width) - 2\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
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
......
524 525
\ 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