Opened 17 years ago
Last modified 14 years ago
#6824 new enhancement
paragraph-links should wait for images to load
Reported by: | simon[at]solida[dot]se | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | unscheduled |
Component: | wiki system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
I noticed, if i have a long wikipage containing many paragraphs and several images (through imagemacro), if i then follow a paragraph-link (eg. http://192.168.0.1/trac/wiki/WikiPage#paragraph) it first jumps to the #paragraph, and then loads the images. Since the images takes longer time to load, the screen will no longer be positioned at the intended paragraph. They are offset by the height of the images after they load. This will of course only occur if the images reside above the paragraph you're following a link to. If you hit back & forward in the browser again, the offset will be smaller since the images are cached, but still a small offset just enough to not see the paragraph.
So my suggestion is to have it jump to the paragraph after the page finished loading, or atleast after the images are loaded. I have been a trac user for a while, and this "bug" has been in all versions i've worked with, and is still in 0.11dev.
Thank's!
Attachments (0)
Change History (8)
follow-ups: 2 3 comment:1 by , 17 years ago
follow-up: 4 comment:2 by , 17 years ago
Replying to cboos:
That's a browser issue.
If the image macro contains the width and height value, the browser should be able to reserve the proper placeholders. I don't see Trac parsing each image to retrieve its size anyway.
comment:3 by , 17 years ago
Replying to cboos:
That's a browser issue. Which one are you using? We could do some Javascript tricks to workaround the issue, but I'm not sure it's worth the trouble.
I'm using the lastest firefox, both in linux and in windows.
But i think the problem applies for IE too, if i remember it right..
I'm currently writing a complete documentation of the trac-workcycle for our customers, and i use alot of quicklinks to paragraphs, and i also use the TOCmacro for the documentation which also uses paragraph-links.. So in this case the tocmacro links and my own paragraph-links are of no use. :(
I know several people who has noticed it, but not filed a ticket.
comment:4 by , 17 years ago
Replying to eblot:
Replying to cboos:
That's a browser issue.
If the image macro contains the width and height value, the browser should be able to reserve the proper placeholders. I don't see Trac parsing each image to retrieve its size anyway.
Yeah, i'll try to set their proper heights through imagemacro tomorrow.. Hope it helps.
Thank's
comment:5 by , 17 years ago
Still no luck, setting the width & height makes no difference.
One more thing, if i use the TracTrailPlugin and follow a paragraph-link, it jumps to the correct location, but the tractrail covers that paragraph just perfect..
comment:6 by , 16 years ago
Milestone: | → 2.0 |
---|---|
Owner: | removed |
comment:8 by , 14 years ago
Milestone: | triaging → unscheduled |
---|
That's a browser issue. Which one are you using? We could do some Javascript tricks to workaround the issue, but I'm not sure it's worth the trouble.