From 3f1f0247af58177ee226e2e7017990465fd499b4 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 30 Apr 2021 07:07:50 +0200 Subject: blablab revert annoying pifpoaoga --- src/Body.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Body.cpp b/src/Body.cpp index 1470708..aa8d1d6 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -658,9 +658,9 @@ namespace QuickMedia { const bool merge_with_previous = body_item_merge_handler && body_item_merge_handler(prev_body_item, item.get()); item->last_drawn_time = elapsed_time_sec; - //float extra_page_scroll = page_scroll; + float extra_page_scroll = page_scroll; float item_height = get_item_height(item.get(), size.x, true, true, merge_with_previous, i); - //prev_pos.y += (page_scroll - extra_page_scroll); + prev_pos.y += (page_scroll - extra_page_scroll); float item_height_with_merge = item_height; item_height_with_merge += spacing_y; prev_pos.y -= item_height_with_merge; @@ -1255,8 +1255,8 @@ namespace QuickMedia { item_height = std::max(item_height, image_height); item_height += (padding_y * 2.0f); - //if(attach_side == AttachSide::TOP && item_index != -1 && item_index < selected_item && item->calculated_height >= 0.0f) - // page_scroll += (item_height - item->calculated_height); + if(attach_side == AttachSide::TOP && item_index != -1 && item_index < selected_item && item->calculated_height >= 0.0f) + page_scroll += (item_height - item->calculated_height); item->calculated_height = item_height; return item_height; -- cgit v1.2.3