Bug 46224 - x-range mismatches with justified text
Summary: x-range mismatches with justified text
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: NetBSD pkgsrc NetBSD
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 42044 55495 59596 60065 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-08-07 17:03 UTC by Hume Smith
Modified: 2006-05-31 16:14 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
TESTCASE showing bug (674 bytes, text/html)
2006-05-31 14:49 UTC, Jens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hume Smith 2002-08-07 16:51:11 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           khtml
Version:           KDE 3.0.2 
Severity:          normal
Installed from:    NetBSD pkgsrc
Compiler:          Not Specified
OS:                NetBSD
OS/Compiler notes: Not Specified

(this is admittedly similar to existing reports)

There are problems computing the width of subparts of full-justified texts. eg I have links set to show underline on hover; the left end of the link is placed ok but the right end tends to come up short (too far left). eg selecting justified text the pointer behaves as if it's further to the right than it is or as if the text is unjustified - find a line with wide spaces start a selection drag in the line below it and see how far to the left of the right margin you have to be before selection appears in the wide-spaced line.

I hope that's not too confusing :) there are bits and pieces of HTML widget code that still assume the text is unjustified.

(Submitted via bugs.kde.org)
Comment 1 Tsujigiri (Damien Byrne) 2002-10-23 17:23:20 UTC
I was going to report this bug too.  The problem for me is that the justifying  
seems to only affect the actual text, but not the hyperlink activation space,  
so the hyperlink underlining is only where the text would have been had it not  
been justified.  Also this means that the link only works where the 
unjustifies text would have been.  My platform details are as follows:  
  
KDE Version:      4.0 (KDE 3.0.3)  
Application:      HTML Viewer Component  
Operating System: Linux (i686) release 2.4.19-16mdk  
Compiler:         gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)  
  
I include code that recreates this bug on my browser:  
  
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">  
<html>  
<head>  
  <title></title>  
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  
  <meta name="GENERATOR" content="Quanta Plus">  
  <STYLE TYPE="text/css">  
  <!--  
  p { text-align: justify; }  
  .test { font-family:verdana; font-size:13pt; color:#006699;}  
  -->  
  </STYLE>  
</head>  
<body>  
<p>  
<a href="nothing.html" class="test">This is a test of justified text to put  
into konqueror to see if the thing I think is wrong is wrong...</a>  
</p>  
</body>  
</html>  
 
Hope this helps. 
 
Damien Byrne 
AKA - Tsujigiri 
dabyrne@internode.on.net 
Comment 2 Daniel Naber 2003-05-29 21:15:04 UTC
Still happens with CVS. 
Comment 3 Daniel Naber 2003-06-11 00:44:02 UTC
*** Bug 59596 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Naber 2003-06-11 00:45:51 UTC
*** Bug 55495 has been marked as a duplicate of this bug. ***
Comment 5 Daniel Naber 2003-06-11 00:48:45 UTC
*** Bug 42044 has been marked as a duplicate of this bug. ***
Comment 6 Marc Mutz 2003-07-20 10:27:10 UTC
*** Bug 50683 has been marked as a duplicate of this bug. ***
Comment 7 Leo Savernik 2003-08-22 01:50:10 UTC
Fixed as a byproduct of the caret mode commit 
Comment 8 Leo Savernik 2003-10-08 19:58:51 UTC
*** Bug 60065 has been marked as a duplicate of this bug. ***
Comment 9 Fab Stz 2003-11-21 10:45:27 UTC
It's written that this bug has been fixed however it's still there for 4.0 (kde 3.1.4) with gcc 3.3.1, self compiled, linux i686 2.4.22
Comment 10 Jens 2006-05-31 14:49:14 UTC
Created attachment 16378 [details]
TESTCASE showing bug

Hello,

this bug still exists. Strangely, it is made less serious if you insert random
"<a href='#'> ... </a>" tags in the text. But the attachment (very simple HTML)
shows that the bug is clearly still there.

Using KDE 3.5.2, SuSE 10.0 RPMs on AMD x86

Jens
Comment 11 Allan Sandfeld 2006-05-31 16:14:21 UTC
Yes, it regressed recently, but has fortunately already been fixed again.