We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 138289e commit 12985f4Copy full SHA for 12985f4
src/popup.ts
@@ -362,8 +362,9 @@ async function calcAlign(opt?: {
362
const mlContent = popupContent
363
.querySelector('math-field')
364
?.shadowRoot?.querySelector('.ML__content') as HTMLElement | null | undefined
365
- // NOTE: 10 means don't expand until content exceed by 10, AND shrink at step of 10
366
- const widthToExpand = mlContent ? mlContent.scrollWidth - mlContent.offsetWidth - 10 : 0
+
+ const widthToExpand = mlContent ? mlContent.scrollWidth - mlContent.offsetWidth : 0
367
368
popup = {
369
width: Math.max(popupDefaultWidth, popupContent.offsetWidth + widthToExpand),
370
marginLeft: parseStyle(popupContent.style.marginLeft),
0 commit comments