You are viewing a plain text version of this content. The canonical link for it is here.
Posted to odf-dev@incubator.apache.org by "Svante Schubert (JIRA)" <ji...@apache.org> on 2017/03/05 12:10:32 UTC

[jira] [Reopened] (ODFTOOLKIT-368) Column.setWidth wrong size

     [ https://issues.apache.org/jira/browse/ODFTOOLKIT-368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svante Schubert reopened ODFTOOLKIT-368:
----------------------------------------
      Assignee: Svante Schubert

reopening to add 'fixed version' JIRA attribute of upcoming release

> Column.setWidth wrong size 
> ---------------------------
>
>                 Key: ODFTOOLKIT-368
>                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-368
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 0.5-incubating, 0.6-incubating
>         Environment: Debian GNU/Linux 7.0 
> Java 1.7u25 
> LibreOffice 3.5.4.2 350m1(build:2)
>            Reporter: Reaper
>            Assignee: Svante Schubert
>
> TextDocument out;
> 	try
> 	{
> 	out=TextDocument.newTextDocument();
> 	Table tab=Table.newTable(out, 1, 2);
> 			
> 	tab.setWidth(160); //Table width sets to 160mm - OK.
> 	
>             tab.getColumnByIndex(0).setWidth(40); //Col width #0 sets to 37.6mm - it's not good!
> 		
> 	out.save("out.odt");
> 	java.awt.Desktop.getDesktop().open((new File("out.odt")));
> 		
> 	}
> 	catch (Exception e)
> 	{
> 	e.printStackTrace();
> 	}
> 	System.exit(0);
> }
> Also
> {
> out=TextDocument.newTextDocument();
> Table tab=Table.newTable(out, 1, 4);
> tab.setWidth(160); 
> for (int i=0;i<4;i++) 
> 	{
> 	tab.getColumnByIndex(i).setWidth(42.3);
> 	}
> ...
> }
> Make table with {40mm;30mm;22,5mm;67.5mm} col widths.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)