mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

The keyboard inside a `virtualKeyboardContainer` is displayed incorrectly

Open qinqin123 opened this issue 4 years ago • 4 comments

Description

in website this.mfe = new MathfieldElement({ // defaultMode:'inline-math', fontsDirectory: '@/utils/mathlive-fonts', virtualKeyboardMode:'manual', virtualKeyboardContainer: document.getElementById('drawerContent') }) style: #drawerContent{ position: relative; } the element "drawerContent" is small.so the virtualKeyboard show only the half. image image

qinqin123 avatar Jun 25 '21 09:06 qinqin123

There is indeed an issue with the placement of the virtual keyboard.

However, the virtual keyboard still needs some sufficient width in the container to display correctly. From the screenshots, the virtualKeyboardContainer in this example is too narrow to display the entire keyboard, even if the keyboard was placed correctly.

arnog avatar Jun 25 '21 12:06 arnog

@arnog thanks for you explaining so much.

qinqin123 avatar Jun 28 '21 01:06 qinqin123

@arnog thanks for you explaining so much.

qinqin123 avatar Jun 28 '21 01:06 qinqin123

Can excuse me with minimum width in the document?

qinqin123 avatar Jun 28 '21 01:06 qinqin123

Fixed in mathlive 0.90.0

arnog avatar Mar 20 '23 06:03 arnog