Replies: 3 comments 8 replies
-
Beta Was this translation helpful? Give feedback.
4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
This has been fixed (by @pgundlach) with version: <Group name="getgridheight">
<Contents>
<PlaceObject>
<Box height="1" width="1" />
</PlaceObject>
</Contents>
</Group>
<SetVariable variable="gridheight" select="sd:group-height('getgridheight','mm')" /> And then applying it to the table wrapper: <PlaceObject column="1" row="1">
<!-- This table is meant to center the object inside that is another table -->
<Table stretch="max">
<Tr minheight="1">
<Td >
<VSpace />
<!-- Real Content -->
[...]
<VSpace />
<!-- Ends Table Wrapper -->
</Td>
</Tr>
</Table>
</PlaceObject> Thanks! 🙏
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @pgundlach
I am trying to vertically centering [1] a table inside a cell grid using the row position with
<PlaceOject>
and thevreference
attribute but the math — and I am not good at math at all — is going crazy... 😵I use
sd:number-of-rows()
to calculate the total number of the rows in a given grid:box3A= 800
Then I create a variable that is the total number of the rows divided the row cells, in this particular case are 2 rows and therefore:
box3B= 400
If the math is correct each cell grid should "contain" 400 rows and thus if I continue to divide by 2 I get the middle point:
box3C= 200
Unfortunately this number is wrong, approximately the right position is around row 15:
The size of the page:
The current page:
The dynamic grid:
The group where the case below belongs to:
And this is the portion of the code that produces the first two yellow boxes:
Pebcak or bug? 🤷♂️
Thanks!!! 🙏
[1]
<Tr valign="middle">
with a former table wrap experiment did not work.Beta Was this translation helpful? Give feedback.
All reactions