Bug in FlowDocument Table?

2019-05-25 19:27发布

first of all, Width calculation of FlowDocuments TableColumns is a mess. but this is rather ridiculous:

<FlowDocumentScrollViewer>
    <FlowDocument>
     <Paragraph>text that's not visible</Paragraph>
     <Table BorderThickness="0.7559" >
        <Table.Columns>
         <TableColumn Width="100" />
        </Table.Columns>
        <TableRowGroup>
         <TableRow>
            <TableCell/>
         </TableRow>
        </TableRowGroup>
     </Table>
    </FlowDocument>
</FlowDocumentScrollViewer>

this actually shows nothing. So the table seems to mess up the whole document. If I either take out the Width="100" or change the Borderthickness to something less precise like BorderThickness="0.755" it does show the table and Paragraph as expected. (Trying things out with this code even crashes Kaxaml.)

This is a very stripped down solution. My real FlowDocument gets calculated based on other data so it's not like I could just use a different value based on visual inspection.

Can someone tell me what is happening here? And how I can solve this issue?

EDIT:

As suggested I added a bug report.

0条回答
登录 后发表回答