Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LaTeX-Workshop
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
James-Yu
LaTeX-Workshop
Commits
670aeafe
Commit
670aeafe
authored
5 months ago
by
James Yu
Browse files
Options
Downloads
Patches
Plain Diff
Add an anchor node to cover the bottom margin of last page in pdf viewer
parent
5c180516
Branches
flicker-free-refresh
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
viewer/components/refresh.ts
+12
-0
12 additions, 0 deletions
viewer/components/refresh.ts
viewer/latexworkshop.css
+0
-2
0 additions, 2 deletions
viewer/latexworkshop.css
with
12 additions
and
2 deletions
viewer/components/refresh.ts
+
12
−
0
View file @
670aeafe
...
@@ -206,6 +206,18 @@ function addMasks() {
...
@@ -206,6 +206,18 @@ function addMasks() {
div
.
appendChild
(
img
)
div
.
appendChild
(
img
)
viewerContainer
.
appendChild
(
div
)
viewerContainer
.
appendChild
(
div
)
div
.
style
.
display
=
'
inherit
'
div
.
style
.
display
=
'
inherit
'
// This workaround is for the last page of the document.
const
anchor
=
document
.
createElement
(
'
div
'
)
anchor
.
className
=
'
page-loading-anchor
'
masks
.
push
(
anchor
)
anchor
.
style
.
display
=
'
inherit
'
anchor
.
style
.
position
=
'
absolute
'
anchor
.
style
.
left
=
pageBound
.
x
-
viewerBound
.
x
+
'
px
'
anchor
.
style
.
top
=
pageBound
.
y
-
viewerBound
.
y
+
pageBound
.
height
+
'
px
'
anchor
.
style
.
width
=
'
10px
'
anchor
.
style
.
height
=
'
10px
'
viewerContainer
.
appendChild
(
anchor
)
}
}
return
masks
return
masks
}
}
...
...
This diff is collapsed.
Click to expand it.
viewer/latexworkshop.css
+
0
−
2
View file @
670aeafe
...
@@ -217,8 +217,6 @@ html[dir='rtl'] .findbar {
...
@@ -217,8 +217,6 @@ html[dir='rtl'] .findbar {
}
}
.page-loading-mask
{
.page-loading-mask
{
padding
:
0
;
margin
:
0
;
border
:
none
;
border
:
none
;
box-shadow
:
0px
0px
0px
1px
lightgrey
;
box-shadow
:
0px
0px
0px
1px
lightgrey
;
outline
:
none
;
outline
:
none
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment