• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to resize the FlowPane child nodes when Stage/FlowPane gets resized?

 
Ranch Hand
Posts: 59
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I added some Tiles from hanSolo/tilesfx into a FlowPane.

However, When I resize the stage, the tiles wont grow at all. They dont change sizes.

The structure is as follows:

Vbox
--SplitPane
----ScrollPane
------GridPane
---------FlowPane(0,1)

The FlowPane itself, gets resized, it goes bigger and smaller as I resize the stage. However, the child nodes inside, wont change at all.
Note that, the FlowPane is inside a GridPane and the row/cols that the FlowPane occupies gets resized normally, exactly as I want to.

I suspect I have to do some kind of binding, but im clueless about how to do it. Ive tried some things but no success at all.

Please help.




 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One note: it's always a good practice to show where a custom class comes from, like:

https://github.com/HanSolo/tilesfx

I couldn't find anything to bind to, but I did find two interesting properties: autoScale and keepAspect.  You could either use the setters:
or maybe TileBuiler exposes the properties:
That last piece of code is a guess, so check it out first.

If all else fails, email the author.
reply
    Bookmark Topic Watch Topic
  • New Topic