user: Fix dropdown combo creation when there is no space for an edit control.
This commit is contained in:
parent
b75db2d9de
commit
a2f883484f
|
@ -435,6 +435,10 @@ static void CBCalcPlacement(
|
|||
lprLB->right = lprLB->left + lphc->droppedWidth;
|
||||
}
|
||||
|
||||
/* don't allow negative window width */
|
||||
if (lprEdit->right < lprEdit->left)
|
||||
lprEdit->right = lprEdit->left;
|
||||
|
||||
TRACE("\ttext\t= (%ld,%ld-%ld,%ld)\n",
|
||||
lprEdit->left, lprEdit->top, lprEdit->right, lprEdit->bottom);
|
||||
|
||||
|
|
Loading…
Reference in New Issue