@ -4404,7 +4404,7 @@ bool ImGui::Begin(const char* name, bool* p_open, ImGuiWindowFlags flags)
else if ( held )
{
// We don't use an incremental MouseDelta but rather compute an absolute target size based on mouse position
size_target = ( g . IO . MousePos - g . ActiveIdClickOffset + resize_rect . GetSize ( ) ) - window - > Pos ;
size_target = ( g . IO . MousePos - g . ActiveIdClickOffset - window - > Pos ) + resize_rect . GetSize ( ) ;
}
if ( size_target . x ! = FLT_MAX & & size_target . y ! = FLT_MAX )
@ -10456,8 +10456,8 @@ void ImGui::EndColumns()
{
float x = window - > Pos . x + GetColumnOffset ( i ) ;
const ImGuiID column_id = window - > DC . ColumnsSetId + ImGuiID ( i ) ;
const float column_ w = 4.0f ; // W idth for interaction
const ImRect column_rect ( ImVec2 ( x - column_ w, y1 ) , ImVec2 ( x + column_ w, y2 ) ) ;
const float column_ hw = 4.0f ; // Half-w idth for interaction
const ImRect column_rect ( ImVec2 ( x - column_ h w, y1 ) , ImVec2 ( x + column_ h w, y2 ) ) ;
if ( IsClippedEx ( column_rect , column_id , false ) )
continue ;
@ -10468,7 +10468,7 @@ void ImGui::EndColumns()
if ( hovered | | held )
g . MouseCursor = ImGuiMouseCursor_ResizeEW ;
if ( held & & g . ActiveIdIsJustActivated )
g . ActiveIdClickOffset . x - = column_ w; // Store from center of column line (we used a 8 wide rect for columns clicking). This is used by GetDraggedColumnOffset().
g . ActiveIdClickOffset . x - = column_ h w; // Store from center of column line (we used a 8 wide rect for columns clicking). This is used by GetDraggedColumnOffset().
if ( held )
dragging_column = i ;
}