Hi Dietrich,

On Friday 04 December 2009 Dietrich Streifert wrote:
> 1. How can I calculate the amount of pixels to scroll to the cursor
> position? Remember that the content may be multiline text and of course
> the line height may change whith other themes or is even different
> between browsers.
I doubt you can. I don't know about any cross-browser API to achieve this, 
sorry.

> 2. Scrolling would work using textArea.getContentElement().scrollToY(x)
> without an additional scroll container.
This would work if you always want to scroll to the end or to a specific point.

> Should I open an enhancement bug for this?
I guess we can't fix this as long as no API is present at the browsers.

cheers,
  Alex

> 
> Ilkka Oksanen schrieb:
> > Hi,
> >
> > One option which might work is to put TextArea
> > inside qx.ui.container.Scroll and then
> > use scroll.scrollToY(x); (x being a big enough number of pixels, e.g.
> > 100000)
> >
> >      -ilkka
> >
> > On Fri, Dec 4, 2009 at 11:11 AM, Dietrich Streifert
> > <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hello all,
> >
> >     I have a qx.ui.form.TextArea with text larger then the visible
> >     text area
> >     so the a scrollbar is displayed.
> >
> >     Now I need to set the cursor to a position which is out of the
> > current view. I'm doing this by using setTextSelection(x,x) where x is
> > the desired cursor position.
> >
> >     Unfortunately the cursor position is not scrolled into view which is
> >     desirable in order to get users attention.
> >
> >     How can I achieve this? Are there any properties which need to be
> > set?
> >
> >     Any help would be great.
> >
> >     Best regards...
> >
> >     --
> >     Mit freundlichen Grüßen
> >     Dietrich Streifert
> >     --
> >     Visionet GmbH
> >     Firmensitz: Am Weichselgarten 7, 91058 Erlangen
> >     Registergericht: Handelsregister Fürth, HRB 6573
> >     Geschäftsführer: Stefan Lindner

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to