forked from AuroraMiddleware/gtk
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:
parent
a39e519bed
commit
a88e5a5f4e
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user