-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
Summary
The algorithm to calculate the required width to display all completions is somehow broken.
possibly related to #633
Expected behavior
Completion panel should correctly adapt to the longest item being displayed for all "font_size" and "dpi_scale" values.
Actual behavior
- The completion panel cuts off some completion labels, if the initial displayed ones are very short.
- The completion panel width is calculated without respect of active font_size. (didn't check dpi_scale)
font_size: 9 --> width: 303px
font_size: 17 --> width: 303px
Steps to reproduce
- Open a file which makes use of some *.sublime-completions
- Set font_size: 9
- Enter some text to trigger completions
- See completion panel showing enough space and remember its width
- Change font_size: 19 or higher
- Enter the same text as before to trigger completions again
- See completion panel being smaller and text being cut off. Hints are most likely not to be displayed at all.
Environment
- Operating system and version:
- Windows 10 x64 1703
- Monitor:
- Resolution 1900x1200
dpi_scale
used in ST 1.0
- Sublime Text:
- Build 3143 ... 3147
- 64 bit
evandrocoan, keith-hall, lucassith and kellerm-adsk