Project

General

Profile

How to scroll up/down WContainerWidget ?

Added by Sergey Bryukov over 11 years ago

Hello

what call to scroll browser up to top?


Replies (2)

RE: How to scroll up/down WContainerWidget ? - Added by Wim Dumon over 11 years ago

You'll need a little JavaScript. Probably this:

  WContainerWidget *div = ...;
  div->doJavaScript(div->jsRef() + ".scrollTop = 0;");

Wim.

RE: How to scroll up/down WContainerWidget ? - Added by Sergey Bryukov over 11 years ago

Hi Wim

doesn't work (

this~~doJavaScript(this~~>jsRef() + ".scrollTop = 0;");

    (1-2/2)