Menu

#2482 Autocomplete list in 5.5.6 (Windows)

Bug
closed-fixed
nobody
5
2025-11-10
2025-06-03
Sven
No

There are two issues with the new autocompletion lists in 5.5.6.

1) ColourElement returns a wrong value when colour is RGB(0, 0, 0). The result is RGBA(0, 0, 0, 0), which results in an incorrect display.

Proposed fix:

if (colour.has_value()) {
// return colour.value();
  return ColourRGBA::FromRGB(colour.value().OpaqueRGB());

2) ListBoxX::AllocateBitMap() should use the ItemHeight() to initialize the bitmap. With the currently used lineHeight, the bitmap is smaller than the item, and using a custom background color results in unsightly dividers.

Proposed fix:

//  const SIZE extent { GetClientExtent().x, lineHeight };
    const SIZE extent { GetClientExtent().x, ItemHeight() };

Discussion

  • Zufu Liu

    Zufu Liu - 2025-06-04
    • labels: --> Scintilla, win32, autocomplete
     
  • Neil Hodgson

    Neil Hodgson - 2025-06-12
    • status: open --> open-fixed
     
  • Neil Hodgson

    Neil Hodgson - 2025-06-12

    Committed but with simpler expression for ColourElement.

     
  • Sven

    Sven - 2025-06-13

    Much simpler. Thanks!

     
  • Neil Hodgson

    Neil Hodgson - 2025-11-10
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB