Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-boot-admin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-boot-admin
Commits
92a3442d
Commit
92a3442d
authored
May 18, 2018
by
Johannes Edmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Scrolling for MS Edge in JMX view
parent
8a39be78
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
index.vue
...er-ui/src/main/frontend/views/instances/jolokia/index.vue
+9
-2
index.vue
...er-ui/src/main/frontend/views/instances/logfile/index.vue
+3
-3
No files found.
spring-boot-admin-server-ui/src/main/frontend/views/instances/jolokia/index.vue
View file @
92a3442d
...
...
@@ -181,8 +181,15 @@
await
this
.
$nextTick
();
const
el
=
document
.
getElementById
(
newVal
.
descriptor
.
raw
);
if
(
el
)
{
const
top
=
el
.
getBoundingClientRect
().
top
+
window
.
scrollY
-
100
;
window
.
scroll
({
top
,
left
:
window
.
scrollX
,
behavior
:
'smooth'
});
const
scrollingEl
=
document
.
scrollingElement
;
const
instanceTabs
=
document
.
querySelector
(
'#instance-tabs'
);
const
navbarOffset
=
(
instanceTabs
?
instanceTabs
.
getBoundingClientRect
().
bottom
:
120
)
+
10
;
const
top
=
scrollingEl
.
scrollTop
+
el
.
getBoundingClientRect
().
top
-
navbarOffset
;
if
(
scrollingEl
.
scrollTo
)
{
scrollingEl
.
scrollTo
({
top
,
behavior
:
'smooth'
})
}
else
{
scrollingEl
.
scrollTop
=
top
;
}
}
}
}
...
...
spring-boot-admin-server-ui/src/main/frontend/views/instances/logfile/index.vue
View file @
92a3442d
...
...
@@ -100,10 +100,10 @@
});
},
onScroll
()
{
const
scrollingEl
ement
=
document
.
scrollingElement
;
const
scrollingEl
=
document
.
scrollingElement
;
const
visibleHeight
=
document
.
documentElement
.
clientHeight
;
this
.
atBottom
=
visibleHeight
===
scrollingEl
ement
.
scrollHeight
-
scrollingElement
.
scrollTop
;
this
.
atTop
=
scrollingEl
ement
.
scrollTop
<=
0
;
this
.
atBottom
=
visibleHeight
===
scrollingEl
.
scrollHeight
-
scrollingEl
.
scrollTop
;
this
.
atTop
=
scrollingEl
.
scrollTop
<=
0
;
},
scrollToTop
()
{
document
.
scrollingElement
.
scrollTop
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment