LinkedInAttic / LayoutKit

LayoutKit is a fast view layout library for iOS, macOS, and tvOS.
http://layoutkit.org
Apache License 2.0
3.16k stars 267 forks source link

Fix two flexibility issues #239

Closed hqin-work closed 6 years ago

hqin-work commented 6 years ago
  1. LOKOverlayLayoutBuilder's "flexibility" block property doesn't have any effect. To fix it, we pass privateFlexibility to LOKOverlayLayout constructor.
  2. LOKInsetLayoutBuilder's "flexibility" block property doesn't have any effect because InsetLayout always takes its sublayout's flexibility as its own flexibility. To fix it, we have InsetLayout constructor take in a flexibility parameter and only use its sublayout's flexibility when that parameter is nil.