AndrewRigg / Crossword

Crossword Generator made by Steven Court
0 stars 0 forks source link

Crossword: scrolling makes highlighted words vanish #94

Closed Golpette closed 7 years ago

Golpette commented 7 years ago

Sorry Andy, I didn't see this before doing all the merges... whenever I scroll on crossword, the entered words now vanish.

I'm 99% sure this couldn't have been me and it didn't used to do this - do you know what you might have changed?

Golpette commented 7 years ago

Maybe this will help you track it:

weirdly if i zoom, then the entered words are "locked in" and never vanish

but if I enter a word then immediately scroll it does

AndrewRigg commented 7 years ago

I think I changed the grid location of stuff down at the bottom. Could it be to do with that? In draw grid, all the bounds were changed from
hintArea.setBounds(squareSize, squareSize, squareSize (x - 2), squareSize (y - 2)); to hintArea.setBounds(initialSquareSize/2, initialSquareSize/2, squareSize (x - 2), squareSize (y - 2)); for each entity. This was an attempt to stop the grid jumping up or down by a small amount every time it was resized. (As the former changed with size but the latter was a final constant)

AndrewRigg commented 7 years ago

All the zooming stuff usually reloads everything in a systematic way, so it checks which words are filled etc, so that's why that works. No idea about the scrolling though... Sorry, I guess I probably did something stupid.

Golpette commented 7 years ago

Yeh yeh, no doubt it's something silly, but no rush - just take a look after your report (it will probably be easier for you to see the problem than me)