mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 21:21:06 +01:00 
			
		
		
		
	Fixed typos (#3782)
This commit is contained in:
		| @@ -126,12 +126,12 @@ Index of this file: | ||||
| //   - with Table policy ImGuiTableFlags_SizingFixedSame     --> default Column policy is ImGuiTableColumnFlags_WidthFixed, default Width is max of all contents width | ||||
| //   - with Table policy ImGuiTableFlags_SizingStretchSame   --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is 1.0f | ||||
| //   - with Table policy ImGuiTableFlags_SizingStretchWeight --> default Column policy is ImGuiTableColumnFlags_WidthStretch, default Weight is proportional to contents | ||||
| // Default Width and default Weight can be overriden when calling TableSetupColumn(). | ||||
| // Default Width and default Weight can be overridden when calling TableSetupColumn(). | ||||
| //----------------------------------------------------------------------------- | ||||
| // About mixing Fixed/Auto and Stretch columns together: | ||||
| //   - the typical use of mixing sizing policies is: any number of LEADING Fixed columns, followed by one or two TRAILING Stretch columns. | ||||
| //   - using mixed policies with ScrollX does not make much sense, as using Stretch columns with ScrollX does not make much sense in the first place! | ||||
| //     that is, unless 'inner_width' is passed to BeginTable() to explicitely provide a total width to layout columns in. | ||||
| //     that is, unless 'inner_width' is passed to BeginTable() to explicitly provide a total width to layout columns in. | ||||
| //   - when using ImGuiTableFlags_SizingFixedSame with mixed columns, only the Fixed/Auto columns will match their widths to the maximum contents width. | ||||
| //   - when using ImGuiTableFlags_SizingStretchSame with mixed columns, only the Stretch columns will match their weight/widths. | ||||
| //----------------------------------------------------------------------------- | ||||
| @@ -1367,7 +1367,7 @@ void ImGui::TableSetupColumn(const char* label, ImGuiTableColumnFlags flags, flo | ||||
|     // Assert when passing a width or weight if policy is entirely left to default, to avoid storing width into weight and vice-versa. | ||||
|     // Give a grace to users of ImGuiTableFlags_ScrollX. | ||||
|     if (table->IsDefaultSizingPolicy && (flags & ImGuiTableColumnFlags_WidthMask_) == 0 && (flags & ImGuiTableFlags_ScrollX) == 0) | ||||
|         IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitely in either Table or Column."); | ||||
|         IM_ASSERT(init_width_or_weight <= 0.0f && "Can only specify width/weight if sizing policy is set explicitly in either Table or Column."); | ||||
|  | ||||
|     // When passing a width automatically enforce WidthFixed policy | ||||
|     // (whereas TableSetupColumnFlags would default to WidthAuto if table is not Resizable) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user