Hi!
I’ve been using JME3 for quite a while now (and loving it). Great work guys!
I’ve just started using the Lemur GUI and I think I found a missing feature aspect: I couldn’t get Fill.Last to work in BoxLayout.
So, I edited the Lemur code to get it working for me (at least what I suspect Fill.Last should do), but I haven’t tested beyond that.
It’s a tiny change, but I could test it further and/or commit it if that would be useful.
Sorry if this is a trivial question - not posted here before.
[java]
Vector3f p = pos.clone();
float axisSizeRunningTotal = 0.f;
for( int i = 0; i < children.size(); i++ ) {
Node n = children.get(i);
Vector3f pref = preferredSizes.get(i).clone();
…
switch( fill ) {
…
case Last:
// resize the last child to fill the space
if( i == children.size()-1 ) {
axisSize = axisSizeTotal - axisSizeRunningTotal;
} else {
axisSize = axisPref;
}
break;
}
axisSizeRunningTotal += axisSize;
…
[/java]