Edgewall Software

Ticket #6824 (new enhancement)

Opened 10 months ago

Last modified 6 weeks ago

paragraph-links should wait for images to load

Reported by: simon[at]solida[dot]se Owned by:
Priority: normal Milestone: 2.0
Component: wiki system Version:
Severity: normal Keywords:
Cc:

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

Change History

follow-ups: ↓ 2 ↓ 3   Changed 10 months ago by 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.

in reply to: ↑ 1 ; follow-up: ↓ 4   Changed 10 months ago by 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.

in reply to: ↑ 1   Changed 10 months ago by anonymous

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   Changed 10 months ago by simon[at]solida[dot]se

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

  Changed 10 months ago by simon[at]solida[dot]se

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..

  Changed 6 weeks ago by rblank

  • owner cboos deleted
  • milestone set to 2.0

Add/Change #6824 (paragraph-links should wait for images to load)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from (none). Next status will be 'new'
The owner will change from (none) to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.