Gtk2: fixed clientRect of GtkTreeView based classes. issue #26904

git-svn-id: trunk@46633 -
This commit is contained in:
zeljko 2014-10-21 13:14:18 +00:00
parent bb7231832e
commit 9e798f0274

View File

@ -4610,8 +4610,8 @@ begin
AChild := gtk_bin_get_child(PGtkBin(Widget)); AChild := gtk_bin_get_child(PGtkBin(Widget));
if (AChild <> nil) and GTK_IS_TREE_VIEW(AChild) then if (AChild <> nil) and GTK_IS_TREE_VIEW(AChild) then
begin begin
Result.Right := AChild^.allocation.width - AChild^.allocation.x; Result.Right := AChild^.allocation.width;
Result.Bottom := AChild^.allocation.height - AChild^.allocation.y; Result.Bottom := AChild^.allocation.height;
end; end;
end; end;
end; end;