Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overlay interdependence between children #520

Closed
serpent213 opened this issue Sep 20, 2023 · 4 comments
Closed

Overlay interdependence between children #520

serpent213 opened this issue Sep 20, 2023 · 4 comments
Assignees
Labels

Comments

@serpent213
Copy link

While you are on the hunt, could be I found another oddity.

Following structure for the page header (implemented here):

<PlaceObject>
  <Overlay>
    <Textblock ...>
    <!--
    <Position>
      <Textblock ...>
    </Position>
    -->
    <Position>
      <Textblock ...>
    </Position>
  </Overlay>
</PlaceObject>

Works as expected:

Screenshot 2023-09-20 at 12 45 15

But when removing the comment markers to enable the centered text, the last Textblock changes its position:

Screenshot 2023-09-20 at 12 44 16

Or is Overlay supposed to be applied differently?

@pgundlach
Copy link
Member

Yes, this is a bug....

@pgundlach pgundlach added the Bug label Sep 20, 2023
@pgundlach pgundlach self-assigned this Sep 20, 2023
@pgundlach
Copy link
Member

Just for the record: This kind of header can be created with a table:

<PlaceObject row="1" column="1">
    <Table fontfamily="text" stretch="max">
        <Tr>
            <Td align="left">
                <Paragraph>
                    <Value>Amateurfunk Cheat Sheet V</Value>
                </Paragraph>
            </Td>
            <Td align="center">
                <Paragraph>
                    <Value>0Z0BSP</Value>
                  </Paragraph>
            </Td>
            <Td align="right">
                <Paragraph>
                    <Value>2023 Steffen Beyer</Value>
                </Paragraph>
            </Td>
        </Tr>
        <!-- control spacing, color '-'' means no color -->
        <Tablerule rulewidth="4pt" color="-"/>
        <Tablerule rulewidth="0.6pt" />
    </Table>
</PlaceObject>

serpent213 added a commit to serpent213/afuchs that referenced this issue Sep 28, 2023
@serpent213
Copy link
Author

Thank you, using a table now with added column specs:

<Columns>
  <Column align="left" width="8" />
  <Column align="center" width="16" />
  <Column align="right" width="8" />
</Columns>

Tried width="max" first for the center column, which didn't work as expected...

@pgundlach
Copy link
Member

Instead of using "8","16","8" as values you can use "1*", "2*", "1*", you don't have to do the calculation yourself. But this works only if you use stretch="max" (not width="max") on the Table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants