You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
And then the one I get when I flip the signMap and re-render.
After re-rendering, the size then remains (approximately) the right size from then on, never going back to the smaller size.
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?
The text was updated successfully, but these errors were encountered:
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.
First, the one I get when I refresh the page / the app from the beginning
And then the one I get when I flip the signMap and re-render.
After re-rendering, the size then remains (approximately) the right size from then on, never going back to the smaller size.
The text was updated successfully, but these errors were encountered: