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

RichEditBox math mode content of matrix disappears #10351

Open
gaviny82 opened this issue Feb 13, 2025 · 0 comments
Open

RichEditBox math mode content of matrix disappears #10351

gaviny82 opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@gaviny82
Copy link

Describe the bug

In the math mode of RichEditBox, the last row of a matrix with 3 rows disappears if content is added to the first row.

Image Image Image

Equations: ⁅■8(&&@&&@&&)⁆, ⁅■8(1&2&3@&&@&&)⁆, ⁅■8(1&2&3&4@&&&@&&&)⁆

The matrix can display correctly if the first row is left empty, or something larger is entered:

Image Image Image
Equations: ⁅■8(&&@4&5&6@1&2&3)⁆, ⁅■8(1&2&3@&&@&&)+■8(1@2@3@4)⁆, ⁅■8(1&2&3@&&@&&)+∑_𝑖⁆

This issue only affects matrices of 3 rows. Matrices of other sizes can be displayed correctly:

Image Image

Equation: ⁅■8(1&2&3&4@&&&@&&&@5&6&7&8)⁆, ⁅■8(1&2&3@&&@&&@4&5&6)⁆

Steps to reproduce the bug

  1. Create a WinUI 3 App project with Window App SDK 1.7-exp1.
  2. Add a RichEditBox with a reasonable size to the page.
<RichEditBox x:Name="editor" Width="800" Height="500 />
  1. Set the RichEditBox to math mode.
public sealed partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
        editor.Document.SetMathMode(RichEditMathMode.MathOnly);
    }
}
  1. Create a matrix with 3 rows and add elements to the first row. Test the sample equations in the description.

Expected behavior

Screenshots from OneNote:

Image Image

Screenshots

No response

NuGet package version

WinUI 3 - Windows App SDK 1.7 Preview 1: 1.7.250208002-preview1

Windows version

Windows 11 (24H2): Build 26100

Additional context

No response

@gaviny82 gaviny82 added the bug Something isn't working label Feb 13, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant