Re: GooCanvasTable: column widths
- From: Murray Cumming <murrayc murrayc com>
- To: Damon Chaplin <damon karuna eclipse co uk>
- Cc: goocanvas-list gnome org
- Subject: Re: GooCanvasTable: column widths
- Date: Tue, 06 Sep 2011 10:35:51 +0200
On Thu, 2011-08-25 at 11:23 +0100, Damon Chaplin wrote:
> 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.
Have you had any luck?
> 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
>
>
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]