Hi Dave, thanks for reporting this back. - T.
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
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel