diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-04-30 07:07:50 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-04-30 07:07:50 +0200 |
commit | 3f1f0247af58177ee226e2e7017990465fd499b4 (patch) | |
tree | aa2560eb50281cb0a972b5dcd8c0eb053710cb0e | |
parent | 3563f867798a35491793f1c27c9840769367ebb6 (diff) |
blablab revert annoying pifpoaoga
-rw-r--r-- | src/Body.cpp | 8 |
1 files 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; |