ecere/gui/ListBox: Put back extra *w check in OnResizing
authorJerome St-Louis <jerome@ecere.com>
Mon, 15 Apr 2013 05:36:32 +0000 (01:36 -0400)
committerJerome St-Louis <jerome@ecere.com>
Mon, 15 Apr 2013 05:36:32 +0000 (01:36 -0400)
- Kept initSize.w check as well
- This fixed the issue of the IDE autocomplete coming up too narrow
  (AeroSnapPosition was invoking it with non 0 value for w)

ecere/src/gui/controls/ListBox.ec

index 37cc0eb..c53899c 100644 (file)
@@ -2996,7 +2996,7 @@ private:
    {
       if(rows.first)
       {
-         if(!initSize.w && (!anchor.left.type || !anchor.right.type) /**w*/)
+         if(!initSize.w && (!anchor.left.type || !anchor.right.type) && !*w)
          {
             // Use widest item
             DataRow row;