79457545

Date: 2025-02-21 13:40:49
Score: 1
Natty:
Report link

Thanks I have also found a solution. First I am making "GraphAreaToDownload" full screen by adding a section "fullscreen-section" which I am using now to export.

this is component code inside return:

{fullScreen ? 
    (
      <div
        id="areaToDownload"
        className={`${fullScreen && "fullscreen-section"}`} 
        >
          <div 
           style={{ 
              backgroundColor: backgroundColor,
              width: "100vw",
              height: "100vh",
              border: "none",
          }}>
            ..........content to export
          </div>
        </div>
    ) : (...other code)
}

this is css code:

.fullscreen-section{
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1;
    border: "none"
}

And it resolved the issue.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shilpa