Bug 47404

Summary: big image map in <input type=image src=map.gif name=map ...>
Product: [Applications] konqueror Reporter: Slava Kharin <slava.kharin>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 4.0   
Target Milestone: ---   
Platform: Mandrake RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Slava Kharin 2002-09-04 00:46:20 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           khtml
Version:           4.0 (using KDE 3.0.3 )
Severity:          normal
Installed from:    Mandrake Linux Cooker i586 - Cooker
Compiler:          gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
OS:                Linux (i686) release 2.4.19-6mdk
OS/Compiler notes: 

If the image map does not fit into a konqueror window that is when a window has scrollbars konqueror does not return correct x and y coordinates in the areas outside of the window.

For example 
<html>
  <form method="post" action="/cgi-bin/test.pl">
    <input type=image alt="area map" src="/test.gif" name="map">
  </form>
</html>

and

#!/usr/bin/perl
use CGI;
$q = new CGI;
$mapx = $q->param('map.x');
$mapy = $q->param('map.y');
print "Content-type:text/html\n\n";
print <<END_OF_MESSAGE;
<html>
  map.x=$mapx<br>
  map.y=$mapy
</html>
END_OF_MESSAGE

where test.gif is an image of size say 480x240.
Reduce the size of the window such that the image does not fit into the window and the scrollbars will appear. Try to scroll to the lower right corner of the image and click near the corner. The results should be around 480 and 240 but they are not. It seems the coordinates are limited by the size of the window.


(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Daniel Naber 2003-05-29 21:26:34 UTC
Still happens with CVS. 
Comment 2 Tim Woodall 2003-07-08 22:27:45 UTC
Yet another duplicate of bug 59701 
Comment 3 Thiago Macieira 2003-07-09 02:09:59 UTC

*** This bug has been marked as a duplicate of 59701 ***