neomacs-project / neomacs

Structural Lisp IDE/computing environment
38 stars 1 forks source link

Completion menu gets wrong width when first shown #28

Closed kchanqvq closed 1 week ago

kchanqvq commented 1 week ago

document.documentElement.scrollWidth seems to get a smaller value when first shown.

kchanqvq commented 1 week ago

This is fixed by bccea2f, but we might need a more general fix.

The issue is we didn't wait for dom-ready or load before executeJavascript. It just happens that this work for most of the case except this one, but we probably shouldn't rely on this.

We might need to wait for dom-ready before returning from make-buffer. Alternatively this might fix itself one #4 is fixed.

kchanqvq commented 1 week ago

It is in fact not fully fixed yet. The width is larger but still seems incorrect. backdrop-filter area is also smaller than view area.

kchanqvq commented 1 week ago

Fixed as of bcc819e.