[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#413378: kdelibs-data: Hard to activate some hyperlinks in khelpcenter



Package: kdelibs-data
Version: 4:3.5.5a.dfsg.1-6
Severity: normal
Tags: patch


This bug is reported against kdelibs-data because the patch applies to a file 
in this package.  However, from the description of the problem, one might think 
the bug is in khelpcenter.

Problem
-------

When I view any application's help page in khelpcenter, most of the hyperlinks 
in the table of contents are hard to activate.  When I move the pointer over a 
chapter/section etc. header, the pointer turns into a hand for a second and 
then it is an arrow again.  Clicking has no effect.  Only the very top part of 
header is working as a hyperlink (pointer becomes hand etc.). I expect that the 
pointer becomes a hand over the header (or whatever it is over hyperlinks) and 
clicking follows the hyperlink.

The error does not occur with all headers.  Some headers work as expected or 
only a part of them is not working as hyperlink.

A specific example for a bad header is "Actions" in the Klipper Handbook.

Patch
-----

The following patch fixes the problem.  Explanation is below.

The patch has 5 lines of context.

--- /usr/share/doc/kde/HTML/en/common/kde-default.css	2005-10-10 17:05:28.000000000 +0200
+++ /usr/share/doc/kde/HTML/en/common/kde-default.css	2007-03-02 18:18:29.000000000 +0100
@@ -53,11 +53,12 @@
 
 .sect1, .chapter, .synopsis, .appendix, .preface, .article, .refsect1, .index, .glossary, .section {
   padding: 1em;
 }
 
-.toc .chapter {
+.toc .sect1, .toc .chapter, .toc .synopsis, .toc .appendix, .toc .preface, .toc .article,
+.toc .refsect1, .toc .index, .toc .glossary, .toc .section {
 padding: 0em 0em 0em 1em;
 }
 
 .author {
   color: rgb(82,80,82);

Analysis
--------

I have started the HTML version of the title page of the Klipper Handbook 
(help:/klipper). I have simplified by throwing away contents outside the table 
of contents and embedding the stylesheet.  I have also deleted the rules from 
the stylesheet which seems nothing to do with the problem and added a rule for 
showing the borders of some boxes.  The resulting HTML is attached.

Viewing this HTML in konqueror or iceweasel, the problem still occurs:
e.g. only the top of the header "Actions" behaves as a hyperlink.

The borders of the boxes containing the headers are also shown. One can see the 
boxes are much larger than the headers and they overlap. My hypothesis is that 
the parts of the headers overlapped by later boxes are not working as 
hyperlinks.

The large size of the boxes are due to the rule in the stylesheet which is the 
first one (in the context lines) in the above patch.  (This can be verified by 
deleting this rule.)  The patch corrects this: the left padding is kept (used 
for identing), the others, which have no visual effects are removed.
Care is taken to restrict this modification to the table of contents (by adding
..toc before the classes) since I have not checked other parts of the document.

When the patch is applied to the stylesheet in the attached HTML then the boxes 
shrink to the header (except on the left) so they do not overlap.  And the 
the whole of the headers start behaving as hyperlinks, which one can follow.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=hu_HU.UTF-8, LC_CTYPE=hu_HU.UTF-8 (charmap=UTF-8)

Versions of packages kdelibs-data depends on:
ii  hicolor-icon-theme            0.8-1      default fallback theme for FreeDes

kdelibs-data recommends no packages.

-- no debconf information
Title: The Klipper Handbook

Reply to: