From 77227e61df47fcf0b359da6cee0f0eee7d4dbd0c Mon Sep 17 00:00:00 2001 From: "claude[bot]" <41898282+claude[bot]@users.noreply.github.com> Date: Sun, 7 Dec 2025 10:14:31 +0000 Subject: [PATCH] fix(highcharts): adjust window size for box-basic Adjust Chrome window size to 5000x3000 to ensure the container element captures the full 4800x2700 dimensions when taking screenshot. --- plots/highcharts/boxplot/box-basic/default.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plots/highcharts/boxplot/box-basic/default.py b/plots/highcharts/boxplot/box-basic/default.py index e8036e6ae3..f991917106 100644 --- a/plots/highcharts/boxplot/box-basic/default.py +++ b/plots/highcharts/boxplot/box-basic/default.py @@ -139,13 +139,13 @@ chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--disable-dev-shm-usage") chrome_options.add_argument("--disable-gpu") -chrome_options.add_argument("--window-size=4900,2800") +chrome_options.add_argument("--window-size=5000,3000") driver = webdriver.Chrome(options=chrome_options) driver.get(f"file://{temp_path}") time.sleep(5) -# Take screenshot of the container element to get exact dimensions +# Screenshot the container element for exact dimensions container = driver.find_element("id", "container") container.screenshot("plot.png") driver.quit()