mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-11-04 01:34:32 +00:00 
			
		
		
		
	Tables: Fixed support for cross-cell SameLine() by preserving Line Y1 position. Amend 8f5ce73.
				
					
				
			This commit is contained in:
		@@ -2017,7 +2017,7 @@ void ImGui::TableBeginCell(ImGuiTable* table, int column_n)
 | 
				
			|||||||
    window->DC.CursorPos.y = table->RowPosY1 + table->CellPaddingY;
 | 
					    window->DC.CursorPos.y = table->RowPosY1 + table->CellPaddingY;
 | 
				
			||||||
    window->DC.CursorMaxPos.x = window->DC.CursorPos.x;
 | 
					    window->DC.CursorMaxPos.x = window->DC.CursorPos.x;
 | 
				
			||||||
    window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT
 | 
					    window->DC.ColumnsOffset.x = start_x - window->Pos.x - window->DC.Indent.x; // FIXME-WORKRECT
 | 
				
			||||||
    window->DC.CursorPosPrevLine = window->DC.CursorPos; // This allows users to call SameLine() to share LineSize between columns.
 | 
					    window->DC.CursorPosPrevLine.x = window->DC.CursorPos.x; // PrevLine.y is preserved. This allows users to call SameLine() to share LineSize between columns.
 | 
				
			||||||
    window->DC.CurrLineTextBaseOffset = table->RowTextBaseline;
 | 
					    window->DC.CurrLineTextBaseOffset = table->RowTextBaseline;
 | 
				
			||||||
    window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent;
 | 
					    window->DC.NavLayerCurrent = (ImGuiNavLayer)column->NavLayerCurrent;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user