Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two size-related issues #23

Open
abaisero opened this issue Mar 7, 2023 · 0 comments
Open

Two size-related issues #23

abaisero opened this issue Mar 7, 2023 · 0 comments

Comments

@abaisero
Copy link

abaisero commented Mar 7, 2023

Hello;

I'm facing two separate issues that concern setting the size of the goban; I use BoundedGoban to try and fix an exact width, but I can't get the desired behavior of a constant goban size.

  1. In my application, I change the signMap shown on the goban, basically to show different section of the board and different problems. I also have controls that are able to rotate or flip the board, and flip the colors. What happens when I open my app, is that the board will start out with a size that is quite different from the one specified to BoundedGoban, and it is only after I re-render (by changing the signMap and/or flipping / rotating the contents) that the board size becomes that specified by maxWidth and maxHeight. I can verify this in the boxmodel shown before:

First, the one I get when I refresh the page / the app from the beginning

image

And then the one I get when I flip the signMap and re-render.

image

After re-rendering, the size then remains (approximately) the right size from then on, never going back to the smaller size.

  1. This is a bit of a more niche problem; I've noticed that when I change the contents of the goban and re-render, I don't always get exactly the same sizes, but there's often just a little bit of error. I think this is happening as a consequence of the different contents having different number of horizontal and/or vertical vertices, since I'm trying to use the same goban to show different local situations at different levels of zoom. The differences are small, just within 1-2 pixels, but they are noticeable when the contents of the goban are changed. Is there anything that I can do to fix the goban total size even when displaying different contents?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant