Re: spanned table cell expansion

Could you post a bit of code so we can get a better idea of what's going on? 


On 6/17/05, Karl H. Beckers <karl h beckers gmx net> wrote:
Hi all,

I'm having this effect where my table cells aren't expanding as I expect
them to. If somebody could shed some light here (perhaps provide a
workaround) that would be most welcome.

I have reduced this to the max. Let's say we have this table with 3
columns and 2 rows where in each row there is a widget spanning two
columns, like this:


 | +------------------+ | +--------------------+-------------------+ |

 | | checkbutton      | | | entry              |                   | |

 | +------------------+ | +--------------------+-------------------+ |

 | +--------------------+--------------------+ | +-----------------+ |

 | | hscale             |                    | | | checkbutton     | |

 | +--------------------+--------------------+ | +-----------------+ |


I've set both checkbuttons to not horizontally expand the surrounding
container and the entry and hscale to do so. This (so I expected) should
make the middle column take care of any extra space needed without the
outer columns ever changing width.

However, this is not at all what's happening. It looks like the space
added to e.g. the hscale is divided evenly between the spanned columns
(rather than implementing a more complex algo for finding out if a given
widget is perhaps the only expaning widget on a spanned column while
other spanned columns may have other expanding widgets, or smth. the
like), and thus also added to the first one.

Any ideas, pointers?



gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]