Skip to content

Commit 82f06dd

Browse files
committed
Fix issue #6121 (+ prevent issue #3996 regression)
1 parent 39f9afc commit 82f06dd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Wt/WTableView.C

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,27 @@ void WTableView::setup()
153153

154154
headerColumnsCanvas_ = new WContainerWidget();
155155
headerColumnsCanvas_->setPositionScheme(PositionScheme::Relative);
156+
headerColumnsCanvas_->clicked().preventPropagation();
156157
headerColumnsCanvas_->clicked().connect
157158
(this, std::bind(&WTableView::handleSingleClick, this, true,
158159
std::placeholders::_1));
160+
headerColumnsCanvas_->clicked().connect("function(o, e) { "
161+
"$(document).trigger($.event.fix(e));"
162+
"}");
163+
headerColumnsCanvas_->mouseWentDown().preventPropagation();
159164
headerColumnsCanvas_->mouseWentDown().connect
160165
(this, std::bind(&WTableView::handleMouseWentDown, this, true,
161166
std::placeholders::_1));
167+
headerColumnsCanvas_->mouseWentDown().connect("function(o, e) { "
168+
"$(document).trigger($.event.fix(e));"
169+
"}");
170+
headerColumnsCanvas_->mouseWentUp().preventPropagation();
162171
headerColumnsCanvas_->mouseWentUp().connect
163172
(this, std::bind(&WTableView::handleMouseWentUp, this, true,
164173
std::placeholders::_1));
174+
headerColumnsCanvas_->mouseWentUp().connect("function(o, e) { "
175+
"$(document).trigger($.event.fix(e));"
176+
"}");
165177
headerColumnsCanvas_->addWidget
166178
(std::unique_ptr<WWidget>(headerColumnsTable_));
167179

0 commit comments

Comments
 (0)