Project

General

Profile

Actions

Bug #988

closed

Named anchors Chrome -> only works once

Added by Rob Van Dyck over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
09/14/2011
Due date:
% Done:

0%

Estimated time:

Description

Hi,

Clicking a named anchor, scolling away and then re-clicking it doesn't make you scroll to the expected location when using Chrome. With firefox this works as expected.

I'm using the git version.

You can find some example code here [1].

I'll re-post it:



#include

#include

#include

#include

#include

using namespace Wt;

using namespace std;

class Main : public WApplication {

private:

WText *named_;

public:

Main(const WEnvironment &e)

: WApplication(e)

{

log("info") << "Constructing new session";

WAnchor *x = new WAnchor("", "Jump to the middle", root());

x->setRefInternalPath("/my_anchor");

for (size_t i = 0; i < 500; ++i) {

WContainerWidget *a = new WContainerWidget(root());

WText *t = new WText(a);

t->setText("Hello World");

}

named_ = new WText(root());

named_->setTextFormat(XHTMLUnsafeText);

named_->setText(\"

\");

for (size_t i = 0; i < 500; ++i) {

WContainerWidget *a = new WContainerWidget(root());

WText *t = new WText(a);

t->setText("end");

}

}

};

Wt::WApplication *create_app(const Wt::WEnvironment& env)

{

return new Main(env);

}

int main(int argc, char **argv)

{

return WRun(argc, argv, &create_app);

}

[1] http://thread.gmane.org/gmane.comp.web.witty.general/6738/focus=6747

Actions #1

Updated by Koen Deforche over 13 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11

Hey Rob,

That indeed wasn't handled. A fix is on its way.

Regards,

koen

Actions #2

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF