mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-12 13:42:59 +00:00
Fix stock display: Return full image without cropping to show all elements
This commit is contained in:
@@ -617,12 +617,8 @@ class StockManager:
|
|||||||
draw.ellipse([point[0]-2, point[1]-2, point[0]+2, point[1]+2],
|
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))
|
fill=(0, 255, 0) if change >= 0 else (255, 0, 0))
|
||||||
|
|
||||||
# Crop to the visible portion based on scroll position
|
# Return the full image without cropping
|
||||||
visible_width = self.display_manager.matrix.width
|
return image
|
||||||
visible_image = image.crop((self.scroll_position, 0,
|
|
||||||
self.scroll_position + visible_width, height))
|
|
||||||
|
|
||||||
return visible_image
|
|
||||||
|
|
||||||
def _update_stock_display(self, symbol: str, data: Dict[str, Any], width: int, height: int) -> None:
|
def _update_stock_display(self, symbol: str, data: Dict[str, Any], width: int, height: int) -> None:
|
||||||
"""Update the stock display with smooth scrolling animation."""
|
"""Update the stock display with smooth scrolling animation."""
|
||||||
|
|||||||
Reference in New Issue
Block a user