Hi Dave,
resurrection reloaded:-)
I tried your concept (thanks for that) and I see the results you describe.
Now I'd like to try your proposed pane header class; no problem
constructing the class and instantiating the pane header object, but
where do I declare that the pane scroller should use this header object?
I searched the api viewer for some setHeader method or so, but without
success.
Would you kindly help me where to attach the pane header so the errors
disappear?
TIA,
greetings
Stefan
PS I support your suggestion for a long term fix; maybe there should be
a bug created so that this gets on the dev's road map!?
On 20:59, Dave Baggett wrote:
>
> I'm resurrecting this old thread to report on how I solved this. The goal was
> to have a treevirtual with no header row. As discussed in this thread, the
> obvious idea of setting the height to zero does not work, because a height
> of zero is ignored.
>
> If you hide the header by doing this:
>
> table.getPaneScroller(0).getHeader().setVisibility("excluded");
>
> You get various exceptions thrown by qx.ui.table.pane.Scroller. These are
> caused by the Scroller's calls to the header's getContainerLocation method,
> which returns null when the header is excluded.
>
> The solution is to create a new class that inherits from
> qx.ui.table.pane.Header and override the getContainerLocation method like
> so:
>
> getContainerLocation: function(mode) {
> var domEl = this.getContainerElement().getDomElement();
> if (domEl) {
> return qx.bom.element.Location.get(domEl, mode);
> }
> else {
> domEl =
> this.__paneScroller.getContainerElement().getDomElement();
> if (domEl) {
> var loc = qx.bom.element.Location.get(domEl, mode);
> return {
> left: loc.left,
> right: loc.right,
> top: loc.top,
> bottom: loc.top // not loc.bottom!
> };
> }
> else {
> return {
> left: 0,
> right: 0,
> top: 0,
> bottom: 0
> };
> }
> }
> }
>
> This is a bit of a hack: if the header's dom node is excluded, it uses the
> scroll container's dom node to determine the location information.
>
> I believe the correct long term solution for the QooxDoo team would be to
> put guards in Scroller.js to not expect getContainerLocation to always
> return a non-null response.
>
> Dave
>
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel