Skip to content

Commit

Permalink
Replaced '0cm' by 0. Just testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
nerun committed Nov 28, 2023
1 parent 81b6c44 commit f84758c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -708,12 +708,12 @@ function renderODTOpenTable ($renderer, $attr, $style, $attr_string) {
$frame_props ['number-wrapped-paragraphs'] = 'no-limit';
if (!empty($frame_props ['float']) &&
$frame_props ['float'] != 'center') {
$frame_props ['margin-top'] = '0cm';
$frame_props ['margin-right'] = '0cm';
$frame_props ['margin-bottom'] = '0cm';
$frame_props ['margin-left'] = '0cm';
$frame_props ['padding-top'] = '0cm';
$frame_props ['padding-bottom'] = '0cm';
$frame_props ['margin-top'] = 0;
$frame_props ['margin-right'] = 0;
$frame_props ['margin-bottom'] = 0;
$frame_props ['margin-left'] = 0;
$frame_props ['padding-top'] = 0;
$frame_props ['padding-bottom'] = 0;
} else {
// No wrapping on not floating divs
$frame_props ['wrap'] = 'none';
Expand All @@ -722,22 +722,22 @@ function renderODTOpenTable ($renderer, $attr, $style, $attr_string) {
switch ($frame_props ['float']) {
case 'left':
if ( self::$table_entr == 1 ) {
$frame_props ['y'] = '0cm';
$frame_props ['y'] = 0;
$frame_props ['x'] = self::$box_left_pos.'cm';
self::$box_left_pos += trim($frame_props ['width'], 'cm');
}
$frame_props ['padding-left'] = '0cm';
$frame_props ['padding-left'] = 0;
break;
case 'right':
$frame_props ['horizontal-rel'] = 'paragraph';
$frame_props ['horizontal-pos'] = 'right';
$frame_props ['padding-right'] = '0cm';
$frame_props ['padding-right'] = 0;
break;
case 'center':
$frame_props ['horizontal-pos'] = 'center';
break;
default:
$frame_props ['padding-left'] = '0cm';
$frame_props ['padding-left'] = 0;
break;
}
$renderer->_odtOpenTextBoxUseProperties($frame_props);
Expand Down

0 comments on commit f84758c

Please sign in to comment.