소스 검색

gotta love phantomjs

Raanan Weber 7 년 전
부모
커밋
aaee8f607c
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      Viewer/src/templateManager.ts

+ 5 - 1
Viewer/src/templateManager.ts

@@ -443,6 +443,10 @@ export class Template {
             } else {
                 // flex? box? should this be configurable easier than the visibilityFunction?
                 this.parent.style.display = 'flex';
+                // support old browsers with no flex:
+                if (this.parent.style.display !== 'flex') {
+                    this.parent.style.display = '';
+                }
                 return this;
             }
         }).then(() => {
@@ -468,7 +472,7 @@ export class Template {
                 return visibilityFunction(this);
             } else {
                 // flex? box? should this be configurable easier than the visibilityFunction?
-                this.parent.style.display = 'hide';
+                this.parent.style.display = 'none';
                 return this;
             }
         }).then(() => {