HenriAugusto / completion-plugin

Completion for Pure Data
BSD 3-Clause "New" or "Revised" License
19 stars 1 forks source link

Placement of the dropdown menu #4

Open LGoodacre opened 5 years ago

LGoodacre commented 5 years ago

I think that the placement of the dropdown menu could do with some improvement. Sometimes it appears right on top of the object box, which means that you can't see what you're typing.

zexy The behavior seems to vary and sometimes the positioning is better than others. I'm not able to figure about exactly what is going on, but here are some observations:

  1. If the patch window is maximized, the menu seems to appear just below the text so it is readable. If the window is not maximized, it seems to appear on top of the box, as in the screenshot.
  2. If the object is too close to the bottom of the window, the menu repositions itself vertically as it should. But if the object is too close to the right-hand margin, then the menu appears mostly off screen.
  3. If you press Ctrl+1, then move the empty object box around with the mouse, then press tab to open the menu, it will drop down from the position where the object originally appeared, not at its current location.

I'm not sure if points 2 and 3 are problems per se, but one way or another it would be nice to ensure that you can always read what you're typing.

HenriAugusto commented 5 years ago

What OS are you using?

Also, what PD version?

  1. Interesting. Maybe you're close to the bottom of the screen and the plugin is actually repositioning itself just a little bit upwards? I can't reproduce it here.
  2. Yeah, it needs an enchancement! Thanks for poiting that out.
  3. Also interesting. I will see if i can find a workaround.
LGoodacre commented 5 years ago

I'm on Ubuntu 18.04 with Vanilla 0.48.1. For point 1 I was careful not to get too close to the bottom of the screen for just this reason. I dragged the window out until it took up almost the whole screen, then created an object near the top. The menu still appears over the object box.

I tried it on Windows too. This time, the menu appears in pretty much the right place when the window is not maximized, but when it is maximized the menu is way off! It appears at an entirely different part of the screen, quite a bit to the right.

3 might not be critical--there are big problems with PD's normal menu placement along similar lines already.