기술 자료

Unable to Load an Embedded View Encased by display:none CSS Property


게시 날짜: 01 May 2017
마지막 수정 날짜: 20 Oct 2022

문제

There may be cases when the Tableau embed code is encased by a CSS element. When this element uses the CSS property display:none, Tableau cannot load the embedded view. 

환경

  • Tableau Server
  • Tableau Cloud
  • Tableau Public

해결 방법

Option 1: Change the CSS property to visibility:hidden instead.  

This property will hide the view, but it will take up the space it needs on the page for the view. For example:
<div id=”Sample” style=”visiblility:hidden”>
<Tableau embed code>
</div>

Option 2: Set the position of the element off screen. 

Setting the position of the element off screen will allow the view to load completely before it is positioned back onto the screen. The effect is similar to what you would expect from using display:none. For example:
<div id=”Sample” style=”top:9999;left:-9999”>
<Tableau embed code>
</div>

원인

Tableau views are often embedded into webpages that contain custom CSS.
이 문서로 문제가 해결되었습니까?