mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-19 04:38:01 +00:00
remove redundant check
This commit is contained in:
parent
61a54e0b98
commit
bb99fbe299
2
clay.h
2
clay.h
@ -1796,8 +1796,8 @@ void Clay__SizeContainersAlongAxis(bool xAxis) {
|
|||||||
// The content is too large, compress the children as much as possible
|
// The content is too large, compress the children as much as possible
|
||||||
if (sizeToDistribute < 0) {
|
if (sizeToDistribute < 0) {
|
||||||
// If the parent can scroll in the axis direction in this direction, don't compress children, just leave them alone
|
// If the parent can scroll in the axis direction in this direction, don't compress children, just leave them alone
|
||||||
if (Clay__ElementHasConfig(parent, CLAY__ELEMENT_CONFIG_TYPE_SCROLL)) {
|
|
||||||
Clay_ScrollElementConfig *scrollElementConfig = Clay__FindElementConfigWithType(parent, CLAY__ELEMENT_CONFIG_TYPE_SCROLL).scrollElementConfig;
|
Clay_ScrollElementConfig *scrollElementConfig = Clay__FindElementConfigWithType(parent, CLAY__ELEMENT_CONFIG_TYPE_SCROLL).scrollElementConfig;
|
||||||
|
if (scrollElementConfig) {
|
||||||
if (((xAxis && scrollElementConfig->horizontal) || (!xAxis && scrollElementConfig->vertical))) {
|
if (((xAxis && scrollElementConfig->horizontal) || (!xAxis && scrollElementConfig->vertical))) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user