From 3a34a6e6f4c948479887e73ff8f643b73c2b32c7 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Fri, 11 Apr 2025 13:19:13 -0500 Subject: [PATCH] Fix stock display: Return full image without cropping to show all elements --- src/stock_manager.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/stock_manager.py b/src/stock_manager.py index 44a77d5d..5ef3ed0c 100644 --- a/src/stock_manager.py +++ b/src/stock_manager.py @@ -617,12 +617,8 @@ class StockManager: draw.ellipse([point[0]-2, point[1]-2, point[0]+2, point[1]+2], fill=(0, 255, 0) if change >= 0 else (255, 0, 0)) - # Crop to the visible portion based on scroll position - visible_width = self.display_manager.matrix.width - visible_image = image.crop((self.scroll_position, 0, - self.scroll_position + visible_width, height)) - - return visible_image + # Return the full image without cropping + return image def _update_stock_display(self, symbol: str, data: Dict[str, Any], width: int, height: int) -> None: """Update the stock display with smooth scrolling animation."""