Skip to content

Commit 9c12f1e

Browse files
committed
In function _odtTableOpenUseProperties():
Query current page width and pass it as $max_width_cm in call to $this->factory->createTableTableStyle(...). Fixes #57.
1 parent ba33379 commit 9c12f1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

renderer/page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ function _odtTableOpenUseProperties ($properties, $maxcols = NULL, $numrows = NU
24912491
$this->temp_in_header = true;
24922492

24932493
// Create style.
2494-
$style_name = $this->factory->createTableTableStyle ($style, $properties);
2494+
$style_name = $this->factory->createTableTableStyle ($style, $properties, NULL, $this->_getAbsWidthMindMargins (100));
24952495
$this->autostyles[$style_name] = $style;
24962496
if ( empty ($properties ['width']) ) {
24972497
// If the caller did not specify a table width, save the style name

0 commit comments

Comments
 (0)