mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:02:44 +00:00 
			
		
		
		
	LibGUI: Account for hidden headers in content size calculation
Fixes oversized scrollable content in the "State" tab.
This commit is contained in:
		
							parent
							
								
									9e20d393ac
								
							
						
					
					
						commit
						be07892fea
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -148,7 +148,9 @@ void AbstractTableView::update_content_size() | |||
|     int content_height = item_count() * row_height(); | ||||
| 
 | ||||
|     set_content_size({ content_width, content_height }); | ||||
|     set_size_occupied_by_fixed_elements({ row_header().width(), column_header().height() }); | ||||
|     int row_width = row_header().is_visible() ? row_header().width() : 0; | ||||
|     int column_height = column_header().is_visible() ? column_header().height() : 0; | ||||
|     set_size_occupied_by_fixed_elements({ row_width, column_height }); | ||||
|     layout_headers(); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool