Jump to content

Recommended Posts

Posted

When creating accordian menus , tabs or other HTML/CSS/JS elements in a HTMLText area the drop down menus and list boxes can become distored when the Spotfire Control goes from out of view (hidden) to in view.

What is the most effcient way to fix this issue

Posted

Add the following JS to a change event occuring in the text are

 

$("*").find('.HtmlTextArea').each(function() {

Spotfire.HtmlTextArea.update(this.id)

console.log(this.id)

});This will udpate the HTMLText area's on the page so that they render correctly.

 

I'm using tabs so did the following :

$("#tab1").click(function () {

$("*").find('.HtmlTextArea').each(function() {

Spotfire.HtmlTextArea.update(this.id)

console.log(this.id)

});

 

});

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...