This worked great for the embed.Html I had asked about originally. Now I
have a qx.ui.table.Table, which also has a contentElement associated with
it, both inherit from
qx.ui.core.Widget#getContentElement<http://demo.qooxdoo.org/0.8.x/apiviewer/#qx.ui.core.Widget#getContentElement>,
but this is not working the same way (or working at all):

    this.recipeTable.getContentElement().scrollToY(0);  // scroll to top of
the table NOT WORKING??????

Seems like something has gone wrong with the inheritance here, or is there a
different way I should be attempting to scroll the table?
Ken

On Thu, Sep 17, 2009 at 11:20 AM, Ken MacDonald <[email protected]> wrote:

> Thanks for the tip - it got me going in the proper direction. I was able to
> get it to work a bit simpler without getting down to the DOM:
>
>     this.labelHtml.setHtml(html);
>     var elem = this.labelHtml.getContentElement();
>     elem.scrollToY(0);
>
> Ken
>
>
>
> On Thu, Sep 17, 2009 at 11:03 AM, thron7 <[email protected]>wrote:
>
>> I'm not sure, but my understanding is that the scrollbars of an
>> embed.Html are native, so you have to get hold of the underlying DOM
>> element (getContentElement().getDomElement()), and then use a standard
>> JS .scrollTop() (or so) method.
>>
>> T.
>>
>> Ken MacDonald wrote:
>> > Hi, I have a couple of:
>> >
>> >       this.labelHtml = new qx.ui.embed.Html();
>> >       this.labelHtml.getContainerElement().setAttribute("id", "foo");
>> >       this.labelHtml.setOverflow("auto", "auto");
>> >       this.labelHtml.setDecorator("main");
>> >       this.labelHtml.setBackgroundColor("white");
>> >       this.labelHtml.setWidth(278);
>> >       this.labelHtml.setHeight(350);
>> >       this.labelHtml.setMinHeight(100);
>> >       this.labelHtml.setCssClass("labelContainer");
>> >       this.labelHtml.setTabIndex(10);
>> >       this.labelHtml.setUserData("some_id", 0);
>> >       this.viewer.add(this.labelHtml, {row: 1, column: 2, rowSpan: 5});
>> >
>> > When I set the content HTML, it usually overflows the size of the
>> > container (vertically) and vertical scrollbars appear. So I scroll to
>> > the bottom to see the missing part. Next, I change the content HTML -
>> > it's roughly the same size as the last HTML, and the scrolling is
>> > still set at the bottom. I'd like to have the new HTML show up with
>> > the top visible; is there a way to do this? There's a method off of
>> > embed.Html for scrolling a child widget, but this doesn't have any
>> > children that I know of.
>> > Thanks,
>> > Ken
>> > ------------------------------------------------------------------------
>> >
>> >
>> ------------------------------------------------------------------------------
>> > Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>> > is the only developer event you need to attend this year. Jumpstart your
>> > developing skills, take BlackBerry mobile applications to market and
>> stay
>> > ahead of the curve. Join us from November 9&#45;12, 2009. Register
>> now&#33;
>> > http://p.sf.net/sfu/devconf
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > qooxdoo-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9&#45;12, 2009. Register
>> now&#33;
>> http://p.sf.net/sfu/devconf
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to