I was using setAnchorNode. What I did was create a WContainerWidget to
return as the editor in a WItemDelegate. Then create the WPopupWidget
and set its anchor to be the WContainerWidget. As expected, the popup is
directly south of the container/the cell being edited in the WTableView.
Unexpectedly the popup is not visible because the TableView hides
overflow. I only tested this with one row in the table.
-
Thomas
On 03/20/2013 01:14 AM, Koen Deforche wrote:
Hey Thomas,
The WPopupWidget and the implementation WTemplate widget are two
different widgets. The implementation of a composite widget is by
definition parented by the composite widget.
If you are using setAnchorWidget() then Wt will find a suitable DOM
node to parent the widget so that it does not suffer from overflow, so
if this is not what you see then you might have found a bug ? If you
are not using setAnchorWidget() then you need to use positionAt() to
show the popup widget. In fact, one of the main reasons to implement
WPopupWidget was to solve these anchoring/overflow issues.
Regards,
koen
2013/3/12 Thomas Suckow <thomas.suc...@pnnl.gov
<mailto:thomas.suc...@pnnl.gov>>
Or it doesn't like the implementation widget to have a parent. Weird.
Regardless, WPopup widget is unusable as a ItemDelegate because it
extends outside the containing div which doesn't show overflow.
Back to WDialog.
-
Thomas
On 03/12/2013 03:19 PM, Suckow, Thomas J wrote:
> Since I am running 3.3 now, I thought I might as well see if I
can take
> advantage of WPopupWidget. The documentation states that it can
have a
> parent to scope its lifetime. But if one is set, I get an
> exception/error: "WCompositeWidget implementation widget cannot
have a
> parent"
>
> Am I missing a subtle requirement on the parent or is this not fully
> ironed out?
>
> --
> Thomas
>
>
------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
<mailto:witty-interest@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
<mailto:witty-interest@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/witty-interest
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest