columnview: Fix some issues with column resizing

Ensure that we place the resize rectangle at the visible
right edge of the column, not where the allocation ends
(we clip the header drawing, after all).

Related: #3274
This commit is contained in:
Matthias Clasen 2020-10-19 08:25:09 -04:00
parent a39e519bed
commit a88e5a5f4e

View File

@ -862,12 +862,16 @@ gtk_column_view_in_resize_rect (GtkColumnView *self,
{
GtkWidget *header;
graphene_rect_t rect;
int width;
header = gtk_column_view_column_get_header (column);
if (!gtk_widget_compute_bounds (header, self->header, &rect))
return FALSE;
gtk_column_view_column_get_allocation (column, NULL, &width);
rect.size.width = width;
rect.origin.x += rect.size.width - DRAG_WIDTH / 2;
rect.size.width = DRAG_WIDTH;