After it, the elsewherge placement is nearly perfect:
So, the problem is that the characters properly report its baseline to the box model, but it cannot take it into account when placing the matrix items (I believe that we should just take Height instead of TotalHeight somewhere in the matrix calculation).
Consider this formula:
Check how it looks currently:![image](https://github.com/ForNeVeR/xaml-math/assets/92793/3b1d5ecf-64c1-4d57-80f8-c09e65779ec3)
As you can see, on line
elsewherge
the red box is high and the item itself is shifted up because of this.On the line
..
, on contrary, the box is quite low and thus the item is also placed incorrectly.Now, consider this patch that temporarily disables the character depth calculation for the system fonts:
After it, the![image](https://github.com/ForNeVeR/xaml-math/assets/92793/03a5b671-0250-4fd1-b4f6-e4136f9d2e1a)
elsewherge
placement is nearly perfect:So, the problem is that the characters properly report its baseline to the box model, but it cannot take it into account when placing the matrix items (I believe that we should just take
Height
instead ofTotalHeight
somewhere in the matrix calculation).