Page MenuHomePhabricator

D17033.id.diff
No OneTemporary

D17033.id.diff

diff --git a/src/view/phui/PHUITimelineEventView.php b/src/view/phui/PHUITimelineEventView.php
--- a/src/view/phui/PHUITimelineEventView.php
+++ b/src/view/phui/PHUITimelineEventView.php
@@ -347,6 +347,17 @@
$group_children = array();
foreach ($events as $event) {
if ($event->shouldRenderEventTitle()) {
+
+ // Render the group anchor here, outside the title box. If we render
+ // it inside the title box it ends up completely hidden and Chrome 55
+ // refuses to jump to it. See T11997 for discussion.
+
+ if ($extra && $this->anchor) {
+ $group_titles[] = id(new PhabricatorAnchorView())
+ ->setAnchorName($this->anchor)
+ ->render();
+ }
+
$group_titles[] = $event->renderEventTitle(
$force_icon,
$has_menu,
@@ -533,12 +544,7 @@
Javelin::initBehavior('phabricator-watch-anchor');
Javelin::initBehavior('phabricator-tooltips');
- $anchor = id(new PhabricatorAnchorView())
- ->setAnchorName($this->anchor)
- ->render();
-
$date = array(
- $anchor,
javelin_tag(
'a',
array(
@@ -546,7 +552,7 @@
'sigil' => 'has-tooltip',
'meta' => array(
'tip' => $content_source,
- ),
+ ),
),
$date),
);

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 25, 2:02 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6736717
Default Alt Text
D17033.id.diff (1 KB)

Event Timeline