Re: GooCanvasTable: column widths
- From: Damon Chaplin <damon karuna eclipse co uk>
- To: Murray Cumming <murrayc murrayc com>
- Cc: goocanvas-list gnome org
- Subject: Re: GooCanvasTable: column widths
- Date: Thu, 25 Aug 2011 11:23:00 +0100
On Thu, 2011-08-25 at 08:54 +0200, Murray Cumming wrote:
> On Wed, 2011-08-24 at 12:12 +0100, Damon Chaplin wrote:
> > On Tue, 2011-08-23 at 12:34 +0200, Murray Cumming wrote:
> >
> > > However, the GooCanvasText does not seem to use all the space that it
> > > then has. This is a problem when aligning the text right, as you can see
> > > in the attached test. The second column has the text aligned right, but
> > > not against the right side of the column.
> >
> > Yes, there's a bug to do with aligned text in tables, and the
> > width-for-height code.
> >
> > It looks a bit awkward to fix unfortunately.
>
> As you understand it best, would you like to file a goocanvas bug about
> it? Maybe I can get someone to work on it.
I'll have a go at fixing it myself first, though I'll add a bug later if
I get stuck.
There may be a sneaky workaround for it, if you don't need
width-for-height adjustments to be used (e.g. you have a fixed column
width).
Set a clip path on the item, that doesn't actually clip it:
GooCanvasItem *text2 = goo_canvas_text_new (table,
"This to",
0.0f, 0.0f,
50.0f, GTK_ANCHOR_NW,
"clip-path", "M 0,0 h 1000 v 1000 h -1000 z",
NULL);
Setting a clip path turns off width-for-height adjustment for the item
so avoids the bug.
Damon
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]