• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bizarre behavior of children upon window resize  RSS feed

Chris R Olsen
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, Everyone --

I am writing a (for me) large and complex statistical program involving multiple graphs. The graphs (with x- and y-axes appear in GridPanes, which are then placed on a Pane, which is one element in a VBox root. All programmatic aspects of the program seem to working as intended, but when I resize the window the (three) graphs seem to grow of their own volition. After lots of resizing events the graphs have grown to some sort of maximum, and then stop growing when they abut each other. I believe this must be due to the children resizing policy of SOMEthing -- GridPane, Pane, or VBox -- but I have been unable to find anything that makes sense. I have tried setting the maxSize for the children, but that suggestion seems to be ignored.

I modified some drag-and-resize-node code from GitHub, and when I resize one node in my panel via that code, I see the same behavior. That is, when I resize one of the graphs they all respond. When I "turn off" that code the behavior persists.

I am pretty much at a loss in trying to identify the problem, let alone debug my way out of it. If anyone has seen and conquered something like this behavior, or has a clue about what the problem might be, I would very much like to hear about it. Or, if anyone has debugging suggestions, that would also be welcome.

I am intending to eventually share this as freeware, so have no compunction about sharing the code with anyone interested in this problem.

Thank you in advance for any assistance!

Chris Olsen
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!