Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GoFish doesn't scroll to matching line
Message
De
26/01/2023 15:59:20
 
 
À
18/01/2023 09:59:52
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
VFPX/Sedna
Divers
Thread ID:
01685788
Message ID:
01685983
Vues:
39
>>>I think this code was assumed to be "good enough," but that there are cases where it fails.
>>>
>>>Tamar
>>
>>Maybe one should place an anchor and force the browser to jump to the anchor? Anyone using JS? Let's see if we can borrow wisdom ...
>
>Well, I can repeat my suggestion, whereby
>
>
	function ScrollToMatch(){
>		var MatchDiv = document.getElementById('matchline');
>		MatchDiv.scrollIntoView();
>	}
>
>
>Though in my case it scrolls the div element in which the piece resides, but I think I've seen it work with the whole page.

Lutz:

I spent some time on this this afternoon. The file that needs to be changed is GoFish5\HTML\GoFish.js and the change is as easy as Dragan said. When I make the corresponding change to a file that I've saved using View Source, it scrolls properly. However, I haven't cracked how to get GoFish to use the new version of file. Tried compiling a new, differently-named, EXE and running that instead and it didn't do the trick. But by now, you know how to get GoFish to compile changes properly, so I'm kicking this back to you.

BTW, I'm pretty sure this change means we could also remove the FindPos method from the same file, since we don't need it anymore.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform