aboutsummaryrefslogtreecommitdiff
path: root/src/Body.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Body.cpp')
-rw-r--r--src/Body.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Body.cpp b/src/Body.cpp
index b7424c5..f9a3717 100644
--- a/src/Body.cpp
+++ b/src/Body.cpp
@@ -1581,6 +1581,7 @@ namespace QuickMedia {
has_loaded_text = true;
}
+ // TODO: Only do this if reactions dirty?
if(!item->reactions.empty() && include_embedded_item) {
float reaction_offset_x = 0.0f;
item_height += body_spacing[body_theme].reaction_padding_y;
@@ -1613,7 +1614,8 @@ namespace QuickMedia {
const bool has_thumbnail = draw_thumbnails && !item->thumbnail_url.empty() && !merge_with_previous;
const float padding_y = has_thumbnail ? body_spacing[body_theme].padding_y : body_spacing[body_theme].padding_y_text_only;
item_height = std::max(item_height, item->loaded_image_size.y);
- item_height += (padding_y * 2.0f);
+ if(item_height > 0.0f)
+ item_height += (padding_y * 2.0f);
}
item->loaded_height = item_height;