CFlapLayoutManager.getMaxSize

Hi,

I’ve a question regarding the getMaxSize() method in CFlapLayoutManager.

Shouldn’t the returned width/height be switched?

Currently it uses:

            if( horizontal )
                return size.width;
            else
                return size.height;

but I think it should be:

            if( horizontal )
                return size.height;
            else
                return size.width;

I think you are right. And the same bug is in “setSize”… canceling out the first bug as long as you do not call “setMinimizedSize”. I’ll fix that, and upload a new version at the weekend.