jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
40.93k stars 7.61k forks source link

Border is off for large blocks of text #2776

Closed JesseAldridge closed 1 year ago

JesseAldridge commented 2 years ago

Preflight Checklist

Describe the bug The top and bottom borders are not correctly positioned for large blocks of text.

Screen Shot 2022-04-27 at 5 21 27 PM

To Reproduce Double click to create a text block. Paste a large amount of text into it.

Here is the full text used in the image:

1. Public Company Accounting Oversight Board (PCAOB)
independent auditors
defined audit procedures
enforces compliance

2. Auditor Independence
were self-regulated
can't consult (far more lucrative)

3. Corporate Responsibility
senior executive responsible for financial reports
limits behaviors of corporate officers

4. Enhanced Financial Disclosures
off-balance-sheet transactions
pro-forma figures and stock transactions
internal controls
reporting of changes in financial condition

5. Analyst Conflicts of Interest
code of conduct for securities analysts

6. Commission Resources and Authority
SEC can bar securities professionals

7. Studies and Reports
Comptroller General must study accounting fraud issues

8. Corporate and Criminal Fraud Accountability
criminal penalties for false financial reports
whistle-blower protection

9. White Collar Crime Penalty Enhancement
increase penalties for white-collar crimes
makes failure to certify corporate financials a criminal offense

10. Corporate Tax Returns
CEO must sign tax return

11. Corporate Fraud Accountability
makes records tampering a criminal offense
strengthens fraud penalties
SEC can freeze large transactions
creates crime of obstructing an official proceeding

12. Obstructing an official proceeding
closed legal loophole
used in 2021 US Capitol attack

Expected behavior border correctly positioned

draw.io version (In the Help->About menu of the draw.io editor):

Desktop (please complete the following information):

JesseAldridge commented 2 years ago

I'm adding the border by checking the Line checkbox in the Style tab. Just realized I could instead check the Border Color checkbox in the Text tab. This mostly fixed the problem, except arrows pointing to the box are slightly off:

Screen Shot 2022-04-27 at 5 31 11 PM
JesseAldridge commented 2 years ago

This also breaks styling:

Screen Shot 2022-04-27 at 5 36 36 PM
stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.