You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the "x" and "width" variables show that these's no space between these frames. It's the widths that are summed to get the total percent, and the size of the "big" frames is 590, so 100 x 5.9 == 590. So this approach should work, but we're losing a tiny bit. This tells me that the problem is not the Perl code, but the JavaScript code that's adding the widths. (JavaScript floating point?)
The text was updated successfully, but these errors were encountered:
I'll create an extreme example to highlight it, by creating an artificial folded file with 100 tiny frames:
If you Ctrl-F search for "big_g", it matches 50%. As it should.
But if you Ctrl-F search for "tiny", it matches 45.5%. We've lost 0.045% for each matched frame.
This sounds like a rounding issue in the JavaScript search code. These are adjacent in the svg:
So the "x" and "width" variables show that these's no space between these frames. It's the widths that are summed to get the total percent, and the size of the "big" frames is 590, so 100 x 5.9 == 590. So this approach should work, but we're losing a tiny bit. This tells me that the problem is not the Perl code, but the JavaScript code that's adding the widths. (JavaScript floating point?)
The text was updated successfully, but these errors were encountered: