I’m working on a board game and I’d like the board to be a square docked West with dimension frameHeight x frameHeight, and I’d like the sidepanel which is docked East to fill the remaining with.
Essentially:
West – frameHeight x frameHeight
East – remainingWidth x frameHeight
_________________
| | |
| | |
| WEST | EAST |
| | |
| | |
|__________|______|
Using MigLayout at the moment I’m saying LARGE (west)’s height should be 100% but I’m not sure how to say width should equal 100% of parent height and have SMALL (east) fill the remaining width.
Anyone with a decent idea to approach this?
MiGLayout won’t let you use references for size constraints, but you can do it with the
posconstraint:This will add
panelseemingly docked to the left edge, covering the entire height and with a width equal to its height.You could then fill the remaining space with: