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

Workaround for framebox overlap (ODT) #265

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

eduardomozart
Copy link
Contributor

Workaround for #264

@Klap-in
Copy link
Collaborator

Klap-in commented Jun 21, 2023

What is a ‘workaround’ in this solution?

@eduardomozart
Copy link
Contributor Author

eduardomozart commented Jun 21, 2023

It creates an additional paragraph after a framebox to avoid framebox overlap when there's two consecutive frameboxes (as can be seen in #264). I believe a better solution would make the framebox height "relative" to the document page, so another element (like another framebox) could be positioned after it. But I'm not an ODT expert so I didn't know if it's possible. How I don't know how to determine the framebox height of the last element to create a "margin-top" or make it's positioning "relative", forcing a paragraph after a framebox creates a separation between them.

Even when creating a new paragraph after a framebox it didn't fail proof that a space will be created. In the image below, we can see that even with an additional paragraph after the framebox, it's still overlapping the image that is right below the framebox when using a "<WRAP half column>" statement after a framebox.

image

DokuWiki markup that created this specific screenshot ODT:

<WRAP center round alert 60%>
Atualmente, o MLAG é compatível apenas com 2 switches. [(:harvard:MLNX-ETH-UM>>page:701)]
</WRAP>

===== Topologia =====

<WRAP group>
<WRAP half column>
{{https://www.plantuml.com/plantuml/png/jLJBSXen4Bpp5Ihv6efzG0m4KJROLEvxoC7X85O3gxAGA4a69ov_KhuYFsOzM5WmvPGFuR2xzBIwUuPXMpV6KcsVrgB5-4hJJOLMwAM5t4VG1GY2fqf2QVcMCye0pVx-CRoa-CWGgYGsV5qgNKB03B7w2G8ODH-MIbf9rq3mTn1Ri5vZtYGO-qi0sG5R0KEb4agRiW9tm83D1v4gbKlmiC-5aQde1iX2FQCBwks94Wo7Yk6_NINDDjQT2JPBBeIpyRTWHV3LVJwRtjqDhoQpMVTsYb6Dv_dNMTB3FYRZ82sLAoSmI68Y7_ToSqtdn3b7ldbEqaC7nOyqFU9P4y_sUD5WrzoY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3BMLufJ8SPt3RThQLKVbJFaX9M_vxy_zNtYcKTvo0tgtZVqfv9z7HdbQSH7oJGdhPoyHbHfNB5OzszFJSk0R9ufVL5m00&.png}}
</WRAP>
</WRAP>

@Klap-in
Copy link
Collaborator

Klap-in commented Jun 21, 2023

sound as a reasonable compromise so far.

@Klap-in Klap-in merged commit 9709c67 into selfthinker:master Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants