Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13997089
D17033.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D17033.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17033: Move timeline anchor targets up to evade a Chrome 55 behavioral change
Attached
Detach File
Event Timeline
Log In to Comment