mirror of
				https://github.com/nicbarker/clay.git
				synced 2025-11-04 08:36:17 +00:00 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			fe8cf178d4
			...
			cf78eb75db
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
							
							
								 | 
						cf78eb75db | ||
| 
							
							
								 | 
						fccfdfce36 | 
							
								
								
									
										5
									
								
								clay.h
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								clay.h
									
									
									
									
									
								
							| 
						 | 
					@ -2734,7 +2734,7 @@ void Clay__CalculateFinalLayout(void) {
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (root->clipElementId) {
 | 
					        if (root->clipElementId) {
 | 
				
			||||||
            Clay_LayoutElementHashMapItem *clipHashMapItem = Clay__GetHashMapItem(root->clipElementId);
 | 
					            Clay_LayoutElementHashMapItem *clipHashMapItem = Clay__GetHashMapItem(root->clipElementId);
 | 
				
			||||||
            if (clipHashMapItem) {
 | 
					            if (clipHashMapItem && !Clay__ElementIsOffscreen(&clipHashMapItem->boundingBox)) {
 | 
				
			||||||
                // Floating elements that are attached to scrolling contents won't be correctly positioned if external scroll handling is enabled, fix here
 | 
					                // Floating elements that are attached to scrolling contents won't be correctly positioned if external scroll handling is enabled, fix here
 | 
				
			||||||
                if (context->externalScrollHandlingEnabled) {
 | 
					                if (context->externalScrollHandlingEnabled) {
 | 
				
			||||||
                    Clay_ClipElementConfig *clipConfig = Clay__FindElementConfigWithType(clipHashMapItem->layoutElement, CLAY__ELEMENT_CONFIG_TYPE_CLIP).clipElementConfig;
 | 
					                    Clay_ClipElementConfig *clipConfig = Clay__FindElementConfigWithType(clipHashMapItem->layoutElement, CLAY__ELEMENT_CONFIG_TYPE_CLIP).clipElementConfig;
 | 
				
			||||||
| 
						 | 
					@ -3002,7 +3002,8 @@ void Clay__CalculateFinalLayout(void) {
 | 
				
			||||||
                bool closeClipElement = false;
 | 
					                bool closeClipElement = false;
 | 
				
			||||||
                Clay_ClipElementConfig *clipConfig = Clay__FindElementConfigWithType(currentElement, CLAY__ELEMENT_CONFIG_TYPE_CLIP).clipElementConfig;
 | 
					                Clay_ClipElementConfig *clipConfig = Clay__FindElementConfigWithType(currentElement, CLAY__ELEMENT_CONFIG_TYPE_CLIP).clipElementConfig;
 | 
				
			||||||
                if (clipConfig) {
 | 
					                if (clipConfig) {
 | 
				
			||||||
                    closeClipElement = true;
 | 
					                    Clay_LayoutElementHashMapItem *currentElementData = Clay__GetHashMapItem(currentElement->id);
 | 
				
			||||||
 | 
					                    closeClipElement = !Clay__ElementIsOffscreen(¤tElementData->boundingBox);
 | 
				
			||||||
                    for (int32_t i = 0; i < context->scrollContainerDatas.length; i++) {
 | 
					                    for (int32_t i = 0; i < context->scrollContainerDatas.length; i++) {
 | 
				
			||||||
                        Clay__ScrollContainerDataInternal *mapping = Clay__ScrollContainerDataInternalArray_Get(&context->scrollContainerDatas, i);
 | 
					                        Clay__ScrollContainerDataInternal *mapping = Clay__ScrollContainerDataInternalArray_Get(&context->scrollContainerDatas, i);
 | 
				
			||||||
                        if (mapping->layoutElement == currentElement) {
 | 
					                        if (mapping->layoutElement == currentElement) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue