Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Enable X scrollbar from custom visual

Hi,

 

I'm developing a flowchart and I need to enable the overflow option, but this works only to Y axis, even though the content exceeds the the screen limit on the X axis too.

I'm using the overflow comand in the construtor, I tried to use the "auto" option too and the options.element.style.overflow:

 

 

constructor(options: VisualConstructorOptions) {
        this.target = options.element;
        this.target.style.width = "max-content";
        this.target.style.minWidth = "100vw";
        this.target.style.overflowX = "scroll";
        this.target.style.overflowY = "scroll";
}

 

 

 

 

  • Anonymous's avatar
    Anonymous
    2 years ago

    I solved it, I had to activate overflow to auto in the css file in the body.visual-sandbox tag, in addition to keeping it activated in the constructor

     

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    I solved it, I had to activate overflow to auto in the css file in the body.visual-sandbox tag, in addition to keeping it activated in the constructor