Re: Placement of popup ( CellRendererDate from examples )

2005-09-07 Thread Jan Hudec
On Tue, Sep 06, 2005 at 12:01:53 +1000, Daniel Kasak wrote: Elijah Newren wrote: On 9/5/05, Daniel Kasak [EMAIL PROTECTED] wrote: Elijah Newren wrote: I don't think this is a WM bug. The WM ( in this case, Enlightenment-0.17 ) is doing exactly what the code says - aligning the top-right of

Re: Placement of popup ( CellRendererDate from examples )

2005-09-07 Thread Elijah Newren
On 9/7/05, Jan Hudec [EMAIL PROTECTED] wrote: On Tue, Sep 06, 2005 at 12:01:53 +1000, Daniel Kasak wrote: Elijah Newren wrote: On 9/5/05, Daniel Kasak [EMAIL PROTECTED] wrote: Elijah Newren wrote: I don't think this is a WM bug. The WM ( in this case, Enlightenment-0.17 ) is doing

Re: Placement of popup ( CellRendererDate from examples )

2005-09-06 Thread muppet
On Sep 5, 2005, at 11:28 PM, Daniel Kasak wrote: muppet wrote: I know ( or I think I know anyway ... I haven't tried it yet ) I can do $popup-allocation to get the size of the popup. There's also get_size_request(), which will ask the widget to calculate the size it wants (which

Placement of popup ( CellRendererDate from examples )

2005-09-05 Thread Daniel Kasak
Greetings. I'm using some code from the example folder to provide a CellRendererDate in a treeview. I've had some complaints that the calendar goes off-screen if the cell being edited is too far down the screen. The code that positions the popup is ( from the cellrendererdate.pl example

Re: Placement of popup ( CellRendererDate from examples )

2005-09-05 Thread muppet
On Sep 5, 2005, at 7:31 PM, Daniel Kasak wrote: How would I go about modifying this to detect whether the calculated y position puts part of the calendar off-screen? Simply calculate whether $y_origin + $cell_area-y + $cell_area- height + $popup-allocation-height is greater than the

Re: Placement of popup ( CellRendererDate from examples )

2005-09-05 Thread Elijah Newren
On 9/5/05, Daniel Kasak [EMAIL PROTECTED] wrote: Greetings. I'm using some code from the example folder to provide a CellRendererDate in a treeview. I've had some complaints that the calendar goes off-screen if the cell being edited is too far down the screen. Window manager bug, IMO.

Re: Placement of popup ( CellRendererDate from examples )

2005-09-05 Thread Elijah Newren
On 9/5/05, Daniel Kasak [EMAIL PROTECTED] wrote: Elijah Newren wrote: I don't think this is a WM bug. The WM ( in this case, Enlightenment-0.17 ) is doing exactly what the code says - aligning the top-right of the popup with the bottom-right of the cell. The problem is in the logic of the

Re: Placement of popup ( CellRendererDate from examples )

2005-09-05 Thread Daniel Kasak
Elijah Newren wrote: On 9/5/05, Daniel Kasak [EMAIL PROTECTED] wrote: Elijah Newren wrote: I don't think this is a WM bug. The WM ( in this case, Enlightenment-0.17 ) is doing exactly what the code says - aligning the top-right of the popup with the bottom-right of the cell. The problem is

Re: Placement of popup ( CellRendererDate from examples )

2005-09-05 Thread Daniel Kasak
muppet wrote: I know ( or I think I know anyway ... I haven't tried it yet ) I can do $popup-allocation to get the size of the popup. There's also get_size_request(), which will ask the widget to calculate the size it wants (which propagates to children); you can use this before the