Highcharts.js fullscreen api isOpen not working?

I am using Highcharts library to display my chart.
I am going to use an icon to make my chart fullscreen. This icon will be placed outside of the chart container to open the container.
To achieve it I have used an onClick event listener on the icon to call a method with following “chartRef?.current?.chart?.fullscreen?.open();”

The icon to close my chart should be at the top right corner. Hence, I have specified IconX and IconY as mentioned below.
Following is my chart option configuration

events: {
                // fullscreenOpen: function () {
                //  const chart = this;
                //  let iconX = chart.plotLeft + chart.plotWidth - 10,
                //      // iconY = chart.plotTop - 20,
                //      iconY = chart.plotTop,
                //      iconPath = CloseIcon,
                //      iconSize = 20;
                //  if (!chartIconRef.current) {
                //      chartIconRef.current = chart.renderer
                //          .image(iconPath, iconX, iconY, iconSize, iconSize)
                //          .css({
                //              cursor: "pointer",
                //          })
                //          .on("click", function () {
                //              chartFullScreenClose();
                //          })
                //          .add();
                //  }
                // },
                // fullscreenClose: function () {
                //  const chart = this;
                //  if (chartIconRef.current) {
                //      chartIconRef.current.destroy();
                //      chartIconRef.current = null;
                //  }
                // },
                render: function () {
                    const chart = this;
                    let iconX = chart.plotLeft + chart.plotWidth - 20,
                        // iconY = chart.plotTop - 20,
                        iconY = chart.plotTop - 20,
                        iconPath = CloseIcon,
                        iconSize = 20;
                    if (!chartIconRef.current && chart.isOpen) {
                        chartIconRef.current = chart.renderer
                            .image(iconPath, iconX, iconY, iconSize, iconSize)
                            .css({
                                cursor: "pointer",
                            })
                            .on("click", function () {
                                chartFullScreenClose();
                            })
                            .add();
                    }
                    if(chartIconRef.current){
                        chartIconRef.current.destroy();
                        chartIconRef.current = null;
                    }
                },
            },

Now, my problem is as follows:
When using fullScreenOpen and fullScreenClose event the icon button is rendered at incorrect position, meaning that the icon does not appear at the new top right after chart re-renders. It stays at the original position. The close and open work correctly as the icon button is added and destroyed according to chart event. However, the position remains amiss due to the plotWidth not getting the new width after fullscreen.

To mitigate this problem, I tried using render method to obtain the latest plot value. My chart now renders the icon correctly, but i have no way of knowing that the chart is not in fullscreen.
I need to know this information to remove the button if the chart has changed back to its original size.

I went through this docbut isOpen on chart object is coming out to be undefined.

Kindly help in either placing the icon button correctly in fullscreenopen event or help me determine if the chart is in fullscreen mode.

I found this other answer here but the author has keep it in bottom left, it will hence not need new coordinates as that position is independent of the chart width height.
I have used it to write my own solution but I cannot figure out how to determine if the current screen is chart fullscreen or not to accordingly handle button visibility.

If in the above solution i can keep the icon at the top right and add condition that if the chart is fullscreen then i render an icon to allow user to exit fullscreen, or find a way to determine if the chart is in fullscreen or exited full screen inside the render method to update my code. Then it will be the solution.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật