aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-09-12 12:36:13 +0200
committerdec05eba <dec05eba@protonmail.com>2021-09-12 12:36:13 +0200
commitde8682ce581cdc3f0886e3edf89b430a7215aea1 (patch)
treec30bc53c85a42fb1c80f990ffa1c40a63907c584 /include
parent381f449e7153d5305df5ae5218cb6a8dfcf20184 (diff)
Scroll body list view on item height diff
Diffstat (limited to 'include')
-rw-r--r--include/BodyItem.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/BodyItem.hpp b/include/BodyItem.hpp
index 1d967b5..e2f4918 100644
--- a/include/BodyItem.hpp
+++ b/include/BodyItem.hpp
@@ -145,6 +145,8 @@ namespace QuickMedia {
std::string post_number;
void *userdata; // Not managed, should be deallocated by whoever sets this
float loaded_height = 0.0f;
+ float height = 0.0f;
+ float prev_height = 0.0f;
sf::Vector2f loaded_image_size;
float loaded_content_height = 0.0f;
FetchStatus embedded_item_status = FetchStatus::NONE;