Skip to content

\sqrt doesn't expand the width of the MathField #80

@On-Arap

Description

@On-Arap

Bug description

When we have a MathField with a dynamic size, encapsulated inside an IntrinsicWidth for example, if we add a \sqrt LaTeX, the MathField doesn't size up, compare to when we are adding a \frac, or a ^ (it only size up in height, not in width, and this however the numbers inside that \sqrt)

To Reproduce

used the Math_keyboard_demo project to reproduce it, simply call MathField like this instead of having it in a SizedBox

        IntrinsicWidth(
          child: MathField(
            controller: _expressionController,
            decoration: InputDecoration(
              labelText: 'Expression math field',
              filled: true,
              border: OutlineInputBorder(),
            ),
          ),
        ),

Expected behavior

When sqrt are added to the MathFieldEditingController, it should size up the MathField area

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions