cappuccino icon indicating copy to clipboard operation
cappuccino copied to clipboard

-fittingSize in all controls

Open cacaodev opened this issue 8 years ago • 1 comments

@property(readonly) CPSize fittingSize;

The minimum size of the view that satisfies the constraints it holds.

AppKit sets this property to the best size available for the view, considering all of the constraints it and its subviews hold and satisfying a preference to make the view as small as possible. The size values in this property are never negative.

cacaodev avatar Sep 12 '16 14:09 cacaodev

Note: -fitingSize is computed by cloning the engine and trying to minimize the control size.

cacaodev avatar Jun 16 '18 04:06 cacaodev