Re: [Planner Dev] Bug 128983 – Gantt bar height doesn't match treeview row height
- From: Charles Tryon <ctryon eng mc xerox com>
- To: Planner Project Manager - Development List <planner-dev lists imendio com>
- Subject: Re: [Planner Dev] Bug 128983 – Gantt bar height doesn't match treeview row height
- Date: Thu, 09 Mar 2006 12:41:08 -0500
Hey Great! I tried to look into this bug a while ago but never got to
the bottom of it. Nice to see some definite progress in at least
identifying the cause!
On Tue, 2006-03-07 at 09:44 -0500, Kurt Maute wrote:
> On Tue, 2006-03-07 at 09:23 -0500, fmoraes nc rr com wrote:
> > Well, I investigated the issue a bit more and my theory about the tree
> > view rows is correct. I've used the following
> > gtk_tree_view_get_background_area (tv,
> > path,
> > col,
> > &area);
> >
> > to retrieve the background area of the first row cell. This gave me the
> > same result as the row height when things are aligned and a two pixel
> > difference when there's a misalignment. Now, all that's left to do is
> > find out where this extra two pixels are coming from. It might be some
> > widget style that's set on some systems. I will be looking into the tree
> > view code in order to see where the background height is coming from.
> > Hopefully that will point to the culprit in the differences. In the
> > worst case, the code above would solve the problem, but the tree model
> > isn't always populated when running the update_row_height function in
> > planner-gantt-chart.c (or at least I don't exactly when it runs after
> > loading a project).
>
> Eureka! Nice work!
>
> I agree it would be great to find the underlying cause and make sure the
> treeview height stays consistent.
>
--
Chuck Tryon
Principal Consultant,
CIBER, Inc.
Office: (585)422-6941 / cell: 509-2134
www.ciber.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]