arturobernalg opened a new pull request, #611:
URL: https://github.com/apache/jspwiki/pull/611

   The score of a search result goes from 0 to 100, but the bars were placed 
between the lowest and the highest score of the list: the lowest result had a 
bar of 40 px whatever its score, so a result with a score of 29 showed a bar of 
40 px.
   
   The container of the results in AJAXSearch.jsp now asks the bar behavior for 
the values 0 to 100 and a bar of 0 to 400 px 
(graphBars-minv0-maxv100-min0-max400), so the length of a bar is proportional 
to the score. Search.js looks for the container by the start of its class, 
since the class now carries those values.
   
   Checked on a running wiki, with three pages of different relevance: before, 
the scores 100, 88 and 29 gave bars of 440, 372 and 40 px; now they give 400, 
352 and 116 px. Full "mvn clean package" passes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to