Skip to content

Positions not matching #13

@kittykatattack

Description

@kittykatattack

Hello!

I'm noticing a strange bug where the clue/answer positions don't match up.
Although the linked demo works fine, when I clone the repo and run it locally I get this:

screen shot 2017-08-15 at 2 54 19 pm

You'll notice that the across and down numbers don't match the clues.

Attempting to create my own crossword gives me this:

screen shot 2017-08-15 at 3 01 11 pm

Here's the data I'm using:

testData = [
			 	{
					clue: "Rogers and Samsung collaborating to sell mobile devices to Canadian consumers is an example of a ___ ___ (two words, use a space as separator).",
					answer: "strategic alliance",
					position: 1,
					orientation: "down",
					startx: 8,
					starty: 1
				},
			 	{
					clue: "HBC sells clothing that are brought in from other countries. This is an example of an ______ business.",
					answer: "import",
					position: 2,
					orientation: "down",
					startx: 15,
					starty: 3
				},
			 	{
					clue: "Domtar Inc. sells paper and pulp products made from its Canadian plants to overseas customers. This is an example of an ______ business.",
					answer: "export",
					position: 3,
					orientation: "down",
					startx: 17,
					starty: 4
				},
			 	{			
					clue: "A country has a trade ______ when imports exceed exports.",
					answer: "deficit",
					position: 4,
					orientation: "down",
					startx: 15,
					starty: 13
				},
			 	{			
					clue: "Jaguar Land Rover Limited expanded into the Chinese luxury car market by partnering with local auto maker, Chery. Together, they formed a new company called Chery Jaguar Land Rover Automotive Company Limited. This is an example of a ___ ___ (two words, use a space as separator).",
					answer: "joint venture",
					position: 5,
					orientation: "across",
					startx: 6,
					starty: 8
				},
			 	{			
					clue: "Walmart Canada would be considered a ___________ of Wal-Mart Stores Inc. in the United States.",
					answer: "subsidiary",
					position: 6,
					orientation: "across",
					startx: 1,
					starty: 11
				},
			 	{	
					clue: "A business ______ refers to recurring periods of increased and decreased economic activity, or expansions and contractions.",
					answer: "cycle",
					position: 7,
					orientation: "across",
					startx: 5,
					starty: 13
				},
			 	{	
					clue: "Acronym for the monetary value of all goods and services produced within a country in a given period of time.",
					answer: "gdp",
					position: 8,
					orientation: "across",
					startx: 14,
					starty: 13
				},
			 	{	
					clue: "Any attempt to increase a business's effectiveness or overall efficiency. E.g. downsizing, cutbacks, relocating to cheaper places of labour.",
					answer: "rationalization",
					position: 9,
					orientation: "across",
					startx: 3,
					starty: 16
				},
			 	{	
					clue: "The bottom of the business cycle.",
					answer: "trough",
					position: 10,
					orientation: "across",
					startx: 15,
					starty: 19
				},
			 	
			] 

Is there a simple solution to this bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions