diff options
Diffstat (limited to 'src/Body.cpp')
-rw-r--r-- | src/Body.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Body.cpp b/src/Body.cpp index dbcaab0..6bf816d 100644 --- a/src/Body.cpp +++ b/src/Body.cpp @@ -1419,7 +1419,7 @@ namespace QuickMedia { window.draw(loading_icon); text_offset_x += body_spacing[body_theme].image_padding_x + item->loaded_image_size.x; } - } else if(item->thumbnail_size.x > 0) { + } else if(draw_thumbnails && item->thumbnail_size.x > 0) { text_offset_x += body_spacing[body_theme].image_padding_x + item->loaded_image_size.x; } @@ -1662,7 +1662,7 @@ namespace QuickMedia { if(item->loaded_image_size.y < 0.1f) item->loaded_image_size = content_size.to_vec2f(); } - } else if(item->thumbnail_size.x > 0) { + } else if(draw_thumbnails && item->thumbnail_size.x > 0) { if(!show_thumbnail) item->loaded_image_size.x = content_size.x; // TODO: Fix. This makes the body item have incorrect position when loading and if the item is merge_with_previous? and has an embedded item @@ -1670,8 +1670,9 @@ namespace QuickMedia { // image_height = content_size.y; } - const float text_offset_x = body_spacing[body_theme].padding_x + body_spacing[body_theme].image_padding_x + item->loaded_image_size.x; - const float text_max_width = rendering_card_view ? width : (width - text_offset_x - body_spacing[body_theme].image_padding_x); + const float image_padding_x = !draw_thumbnails ? 0.0f : body_spacing[body_theme].image_padding_x; + const float text_offset_x = body_spacing[body_theme].padding_x + image_padding_x + item->loaded_image_size.x; + const float text_max_width = rendering_card_view ? width : (width - text_offset_x - image_padding_x); if(load_texture) update_dirty_state(item, text_max_width); |