Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
061e8a1e
Commit
061e8a1e
authored
Apr 18, 2016
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo
parent
1b89af74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
webengineviewer/src/webenginescript.cpp
webengineviewer/src/webenginescript.cpp
+1
-1
No files found.
webengineviewer/src/webenginescript.cpp
View file @
061e8a1e
...
...
@@ -128,7 +128,7 @@ QString WebEngineScript::scrollPercentage(int percent)
const
QString
source
=
QString
::
fromLatin1
(
"var current = document.body.scrollTop;"
"var height = document.height;"
"var newPosition = current + height * %1 / 100;"
"window.scrollTo(window.scrollX, newPostion); [window.scrollX, window.scrollY];"
).
arg
(
percent
);
"window.scrollTo(window.scrollX, newPos
i
tion); [window.scrollX, window.scrollY];"
).
arg
(
percent
);
#if 0
const qint64 height = page()->viewportSize().height();
const qint64 current = page()->mainFrame()->scrollBarValue(Qt::Vertical);
...
...
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