FLTK logo

STR #3270

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 1.3 | SVN ⇄ GIT ]

STR #3270

Application:FLTK Library
Status:1 - Closed w/Resolution
Priority:3 - Moderate, e.g. unable to compile the software
Scope:3 - Applies to all machines and operating systems
Subsystem:Core Library
Summary:Fl_Help_View, link on image
Version:1.3-current
Created By:mutoneyo
Assigned To:greg.ercolano
Fix Version:1.3.4 (SVN: v11844)
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:


Name/Time/Date Filename/Size  
 
#1 greg.ercolano
21:26 Jul 22, 2016
test-img-link-issue.cxx
0k
 
     

Trouble Report Comments:


Name/Time/Date Text  
 
#1 mutoneyo
09:45 Dec 15, 2015
Bonjour,

in fltk 1.3.3 widget Fl_Help_View, when link on image
  <a href="lien"><img src="img.jpg"></a>
the position of the link is not correct.

The height is not the height of the image (it seem to be heigh of a line text)

I replace line 1707 of Fl_Help_View.cxx (in the group of <else if (strcasecmp(buf, "IMG") == 0)>)
1707    add_link(linkdest, xx, yy - height, ww, height);
by
1707    add_link(linkdest, xx, yy , ww, height);

The height of link is now correct, but the horizontal position is move by the height of a line
Finally with this line

1707    add_link(linkdest, xx, yy-fsize , ww, height);

it seem to be good

Gérard Mouton
 
 
#2 greg.ercolano
21:26 Jul 22, 2016
Fixed in Subversion repository.

Thanks for the fix recommendation; looks good.

Yes, seems like the programmer intended to use 'fsize' (font size)
in place of 'height' for the yy offset, so that the image would align
with the top of the current line.

Attaching the test program I used to verify the issue you reported
and to test your fix, using both large and small images.

Committed as r11844.
 
     

Return to Bugs & Features ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.