| 4484 |
4484 |
| 4485 /* Make sure there's enough room for at least min_lines. Allocate enough space to |
4485 /* Make sure there's enough room for at least min_lines. Allocate enough space to |
| 4486 * prevent scrolling when the second line is a continuation of the first line, or |
4486 * prevent scrolling when the second line is a continuation of the first line, or |
| 4487 * is the beginning of a new paragraph. */ |
4487 * is the beginning of a new paragraph. */ |
| 4488 min_height = min_lines * (oneline.height + MAX(pad_inside, pad_top + pad_bottom)); |
4488 min_height = min_lines * (oneline.height + MAX(pad_inside, pad_top + pad_bottom)); |
| 4489 height = CLAMP(height, min_height, max_height); |
4489 height = CLAMP(height, MIN(min_height, max_height), max_height); |
| 4490 |
4490 |
| 4491 diff = height - gtkconv->entry->allocation.height; |
4491 diff = height - gtkconv->entry->allocation.height; |
| 4492 if (ABS(diff) < oneline.height / 2) |
4492 if (ABS(diff) < oneline.height / 2) |
| 4493 return FALSE; |
4493 return FALSE; |
| 4494 |
4494 |