Hi,
However, this only works for the tab that is currently displayed.
Any ideas?
Thank you
-- there are several chess boards in different tabs of a TabLayoutPanel.
And there are two types of presentation: table-based board and SVG based board.
When the user switches between the two types of graphics, all of the chess boards within the tabs are recreated.
So far, so good.
Each tab has a SimplePanel containing the chess board. To center the board within the SimplePanel, I use the onResize method.
After recreating a board I schedule a onResize for the corresponding SimplePanel.
However, this only works for the tab that is currently displayed.
When I then switch to another tab, the board is not centered. It will be centered when I then resize the SimplePanel.
I thought about hooking the event when another tab is selected (how would you do this?) and then do a onResize manually.
But in my opinion the better solution would be when you recreate the boards.
But in my opinion the better solution would be when you recreate the boards.
Any ideas?
Thank you
Magnus
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment