Tyger Guzman 2 Posted February 4, 2021 Share Posted February 4, 2021 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 Link to comment Share on other sites More sharing options...
Tyger Guzman 2 Posted February 4, 2021 Author Share Posted February 4, 2021 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) }); }); Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now