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 c347f3d commit 3ba977fCopy full SHA for 3ba977f
src/popup.ts
@@ -275,7 +275,7 @@ async function calcAlign(opt?: {
275
.querySelector('math-field')
276
?.shadowRoot?.querySelector('.ML__mathlive')?.scrollWidth
277
popup = {
278
- width: scrollWidth ? Math.max(popupDefaultWidth, scrollWidth + 50) : popupContent.clientWidth,
+ width: scrollWidth ? Math.max(popupDefaultWidth, scrollWidth + 50) : popupContent.offsetWidth,
279
marginLeft: parseStyle(popupContent.style.marginLeft),
280
marginRight: parseStyle(popupContent.style.marginLeft),
281
left: parseStyle(popupContent.style.left) + parseInt(popupContent.dataset.dx ?? '0'),
0 commit comments