Edgewall Software
Modify

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)

comment:1 by Christian Boos, 17 years ago

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.

in reply to:  1 ; comment:2 by Emmanuel Blot, 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.

in reply to:  1 comment:3 by anonymous, 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.

in reply to:  2 comment:4 by simon[at]solida[dot]se, 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 simon[at]solida[dot]se, 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 Remy Blank, 16 years ago

Milestone: 2.0
Owner: Christian Boos removed

comment:7 by Christian Boos, 15 years ago

Milestone: 2.0unscheduled

Milestone 2.0 deleted

comment:8 by Christian Boos, 14 years ago

Milestone: triagingunscheduled

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.