Defect #43143 » 0001-Adjust-scrolling-to-keep-Edit-heading-visible.patch
| app/assets/javascripts/application-legacy.js | ||
|---|---|---|
|
}
|
||
|
function showAndScrollTo(id, focus) {
|
||
|
$('#'+id).show();
|
||
|
if (focus !== null) {
|
||
|
$('#'+focus).focus();
|
||
|
const el = document.getElementById(id);
|
||
|
if (el) {
|
||
|
el.style.display = ''; // show()
|
||
|
if (focus) document.getElementById(focus)?.focus({ preventScroll: true });
|
||
|
el.scrollIntoView({ behavior: 'smooth' });
|
||
|
}
|
||
|
$('html, body').animate({scrollTop: $('#'+id).offset().top}, 100);
|
||
|
}
|
||
|
function toggleRowGroup(el) {
|
||
| app/assets/stylesheets/application.css | ||
|---|---|---|
|
/* Prevent content from being hidden behind a #sticky-issue-header when scrolling via anchor links. */
|
||
|
.controller-issues.action-show div.wiki a[name],
|
||
|
.controller-issues.action-show #history div[id^="note-"],
|
||
|
.controller-issues.action-show #history div[id^="change-"] {
|
||
|
.controller-issues.action-show #history div[id^="change-"],
|
||
|
.controller-issues.action-show #update {
|
||
|
scroll-margin-top: 50px;
|
||
|
}
|
||
| app/assets/stylesheets/responsive.css | ||
|---|---|---|
|
/* Prevent content from being hidden behind #sticky-issue-header and project-jump when scrolling via anchor links. */
|
||
|
.controller-issues.action-show div.wiki a[name],
|
||
|
.controller-issues.action-show #history div[id^="note-"],
|
||
|
.controller-issues.action-show #history div[id^="change-"] {
|
||
|
.controller-issues.action-show #history div[id^="change-"],
|
||
|
.controller-issues.action-show #update {
|
||
|
scroll-margin-top: 114px;
|
||
|
}
|
||
|
}
|
||