Hello community,

here is the log from the commit of package messagelib for openSUSE:Factory 
checked in at 2018-01-06 18:45:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/messagelib (Old)
 and      /work/SRC/openSUSE:Factory/.messagelib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "messagelib"

Sat Jan  6 18:45:40 2018 rev:23 rq:561138 version:17.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/messagelib/messagelib.changes    2017-12-18 
08:55:21.630811700 +0100
+++ /work/SRC/openSUSE:Factory/.messagelib.new/messagelib.changes       
2018-01-06 18:45:47.216770144 +0100
@@ -1,0 +2,6 @@
+Tue Jan  2 14:12:55 UTC 2018 - fab...@ritter-vogt.de
+
+- Add patch to fix scrolling with Qt >= 5.10 (boo#1074271):
+  * 0001-Fix-Bug-388440-scrolling-in-KMail-page-down-only-wor.patch
+
+-------------------------------------------------------------------

New:
----
  0001-Fix-Bug-388440-scrolling-in-KMail-page-down-only-wor.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ messagelib.spec ++++++
--- /var/tmp/diff_new_pack.5RzK2J/_old  2018-01-06 18:45:48.068730335 +0100
+++ /var/tmp/diff_new_pack.5RzK2J/_new  2018-01-06 18:45:48.076729962 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package messagelib
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -29,6 +29,8 @@
 Group:          System/Libraries
 Url:            http://www.kde.org
 Source0:        %{name}-%{version}.tar.xz
+# PATCH-FIX-UPSTREAM
+Patch1:         0001-Fix-Bug-388440-scrolling-in-KMail-page-down-only-wor.patch
 BuildRequires:  akonadi-contact-devel
 BuildRequires:  akonadi-mime-devel
 BuildRequires:  akonadi-search-devel
@@ -117,6 +119,7 @@
 
 %prep
 %setup -q
+%patch1 -p1
 
 %build
 %cmake_kf5 -d build -- -DMESSAGEVIEWER_USE_QTWEBENGINE=TRUE 
-DQTWEBENGINE_SUPPORT_OPTION=TRUE

++++++ 0001-Fix-Bug-388440-scrolling-in-KMail-page-down-only-wor.patch ++++++
>From ddbdf9b33c6279b0a2ff29a7b67b0044762a258d Mon Sep 17 00:00:00 2001
From: Laurent Montel <mon...@kde.org>
Date: Tue, 2 Jan 2018 07:00:11 +0100
Subject: [PATCH] Fix Bug 388440 - scrolling in KMail: "page down" only works
 once

FIXED-IN: 5.7.1
BUG: 388440
document.body.scrollTop was deprecated in removed in last webengine
---
 webengineviewer/src/webenginescript.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webengineviewer/src/webenginescript.cpp 
b/webengineviewer/src/webenginescript.cpp
index 8a3afd67..81bd315a 100644
--- a/webengineviewer/src/webenginescript.cpp
+++ b/webengineviewer/src/webenginescript.cpp
@@ -125,7 +125,7 @@ QString WebEngineScript::searchElementPosition(const 
QString &elementStr)
 
 QString WebEngineScript::scrollPercentage(int percent)
 {
-    const QString source = QStringLiteral("var current = 
document.body.scrollTop;"
+    const QString source = QStringLiteral("var current = 
document.documentElement.scrollTop;"
                                                "var docElement = 
document.documentElement;"
                                                "var height = 
docElement.clientHeight;"
                                                "var newPosition = current + 
height * %1 /100;"
@@ -180,7 +180,7 @@ QString WebEngineScript::isScrolledToBottom()
     return QStringLiteral("(function() { "
                                "var docElement = document.documentElement;"
                                "var viewportHeight = docElement.clientHeight;"
-                               "var isAtBottom = document.body.scrollTop + 
viewportHeight >= document.body.scrollHeight;"
+                               "var isAtBottom = 
document.documentElement.scrollTop + viewportHeight >= 
document.body.scrollHeight;"
                                "return Boolean(isAtBottom); "
                                "}());");
 }
-- 
2.15.0


Reply via email to