branchFacepunch.Flexbox/maincancel
61 Commits over 976 Days - 0.00cph!
Fix text max width/height not clamping properly
Actually it needs to be public
Make ControlledProperties protected again
Unity 2022
Tweak DrivenRectTransformTracker usage to try and fix prefabs having changes as soon as you open them
Implement more accurate preferred size for flex columns when using a fixed column count
Apply min/max size clamps to element preferred size if they have any restrictions
Fix the "Current" button on the "To" field for FlexTransition filling in the wrong field
Unity upgrade
Reset flex transition state sooner so it shouldn't interfere with other scripts
Handle min/max size in flex text, fixes weird layout issues on text when the size is clamped
Cleanup ds_store files
Add FlexScipedUpdate so it's easy to do batched updates which run layout immediately after instead of deferring until LateUpdate
Add flex aspect ratio component
Fix flex text not setting its driven properties
Change flex columns to calculate dynamic column counts with a minimum width, expanding the columns equally to fill the container
Fix graphics transform not working correctly when nested
Don't require Graphic or CanvasRenderer
Transform with transition sample
Added FlexGraphicTransform component so we can do CSS-like transforms, hooked up to FlexTransition
Fix possible division by zero in layout when scale is zero
Add a way to override the preferred width/height to nicely size images without restricting them
Some bug fixes related to columns, auto sizing, controlled properties, and prefabs being marked dirty for no reason
Upgrade to unity 2021
Fix some column state not resetting correctly which made it render incorrectly sometimes
Add some missing profiling blocks
Add FlexColumnsElement for laying out elements into columns (either a fixed number of columns or auto calculated based on width)
Split FlexElementEditor to have a shared base class too
Move more stuff into FlexElementBase
Split some shared code out of FlexElement into FlexElementBase
Add a scene for testing spacing modes
Simplify grow/shrink sum calculation
Fix incorrect alignment on main axis when a child grows but has its growth clamped
Add support for justify-content space-between, space-around, and space-evenly
Fix scenes not doing layout on load in editor
Don't queue up layouts for elements that are not in loaded scenes
Fix min height on scroll views
Update player screen with new scroll views
Add a scrollbox prefab
Add a sample of auto sized flex scroll views
Count basis when measuring the main axis
Add support for flex basis
Support rotation in flex transition
Fix gap calculation off by 1
Exclude space used by gap when calculating percent unit values on the main axis
Fix some issues with switching to/from play mode
Fix percent units not taking element scale into consideration
Fix align items stretch sizing elements larger/smaller than the container when the element is scaled
Don't show warning that a FlexElement isn't marked as absolute if the element is the root object of a prefab
Fix broken implicit autosizing for non-absolute elementsin prefabs
Fix broken padding behavior
Add a scene to test all layout combos with padding
More editor mode improvements
Namespace everything, support layout in editor mode without FlexLayoutManager
Make FlexTransition nicer to use
Remove redundant fields from transition definitions
Fix a padding bug
Progress on supporting percent units for min/max element sizes
Fix a scale bug not related to percent units
Fix auto sizing not working anymore
Fix another scaling bug with scaling when the element grows/shrinks
Cache parameters from child elements when calculating sizing so we avoid repeated work for no reason
Merge branch 'percent-unit'
Replace RectOffset with struct that uses floats instead
Add a generic transition component for animating UIs
Example accordion-ish UI with collapsible sections that animate when opening/closing
Allow scaling flex elements to support animations and whatever else