| [ 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: | |
Trouble Report Files:
Trouble Report Comments:
|
#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 ]
|
| |