[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:23:44 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=9f70a54

The following commit has been merged in the master branch:
commit 9f70a5428dbb66aff1770c0c4a95de31cacf6c0e
Author: Paolo Capriotti <paolo.capriotti at collabora.co.uk>
Date:   Wed Apr 3 17:34:06 2013 +0200

    Fixed bug where the chat window was slightly scrollable even when it fitted in the window.
    
    REVIEW: 102005
    BUG: 317782
---
 data/Template.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/data/Template.html b/data/Template.html
index 186cb0a..6549479 100644
--- a/data/Template.html
+++ b/data/Template.html
@@ -293,9 +293,11 @@
             if (windowHeight > 0) {
                 var contentElement = document.getElementById('Chat');
                 var contentHeight = contentElement.offsetHeight;
-                if (windowHeight - contentHeight > 0) {
+                var margin = parseFloat(document.defaultView.getComputedStyle(document.body, null).getPropertyValue("margin-bottom"));
+                var location = windowHeight - contentHeight - margin;
+                if (location > 0) {
                     contentElement.style.position = 'relative';
-                    contentElement.style.top = (windowHeight - contentHeight) + 'px';
+                    contentElement.style.top = location + 'px';
                 } else {
                     contentElement.style.position = 'static';
                 }

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list