andreoupanagiotis / jquery-wordsearch-game

Automatically exported from code.google.com/p/jquery-wordsearch-game
MIT License
0 stars 0 forks source link

On the list white space instead of word #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. put long or to much words
2. reduce gridsize

What is the expected output? What do you see instead?
Sometimes in the list appear a white space instead of a word. I think that 
occurs when can't put the word in the grid. If reload the page new letters 
appears in the grid and usually it work. There is a way to try with another new 
grid if they can't put the word?
Thanks!

What version of the product are you using? On what operating system?
Version = jquery.wordsearchgame.touch-1.1.
OS = Windows

Please provide any additional information below.

Original issue reported on code.google.com by joanrued...@gmail.com on 6 Mar 2015 at 4:26

GoogleCodeExporter commented 9 years ago
I solve the problem adding this code (I ignore if exist an elegant/better way)

JS CODE:

//Search for the class that contain the "white" words
while ($(".rf-pfalse")[0] ){
// If class exists remove and load again
    $("#theGrid").remove();
    $("body").append( "<div id='theGrid'></div>" );
    $("#theGrid").wordsearchwidget({"wordlist" : words,"gridsize" : 10});
}

Original comment by joanrued...@gmail.com on 6 Mar 2015 at 5:20