diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-22 07:47:04 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-22 07:47:04 +0100 |
commit | 4ddc6897dd53274bb68eb6401715c718a212d9ab (patch) | |
tree | 316f83b24d7d2484f92423ab1cef611c8dd490b0 /include | |
parent | 600bdbe99f09162ebf264af88ac7cd91d36ac035 (diff) |
Matrix: fix embedded text (replies) making body stutter if word wrapping but original item does not
Diffstat (limited to 'include')
-rw-r--r-- | include/Body.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp index 43e2946..45121f8 100644 --- a/include/Body.hpp +++ b/include/Body.hpp @@ -118,6 +118,9 @@ namespace QuickMedia { void *userdata; // Not managed, should be deallocated by whoever sets this double last_drawn_time; FetchStatus embedded_item_status = FetchStatus::NONE; + // Important! Should refer to a new BodyItem, not one that already exists in the body. + // TODO: Allow referring to an existing body item. This doesn't work properly at the moment because max width of text and line count calculation getting messed up + // if an embedded item wraps but not the original body item. std::shared_ptr<BodyItem> embedded_item; // Used by matrix for example to display reply message body. Note: only the first level of embedded items is rendered (not recursive, this is done on purpose) ThumbnailMaskType thumbnail_mask_type = ThumbnailMaskType::NONE; sf::Vector2i thumbnail_size; |