Add proper support for auto minimize and maximize

Issue #140 new
Matthias Schoettle created an issue

Currently the layouts all call minimizeSize(), however, it is never checked whether the component has auto minimize set. It seems that auto maximize is checked, because it is done at the end.

This leads to components with no auto minimize to still be minimized if a bigger size was set than it actually needs (which might make sense in some cases).

I propose the following: Add two methods to AbstractBaseLayout:

  • `minimizeComponent(RamRectangleComponent)
  • `maximizeComponent(RamRectangleComponent)

They will check whether the given component auto maximizes/minimizes and if so, call the appropriate method on the component.

The layout will always call one of the two methods instead of the component directly.

Comments (0)

  1. Log in to comment