Skip to content

Commit 9bff15a

Browse files
jcheng5wch
authored andcommitted
Fix rstudio#1632: Showcase mode comes up almost blank in IE9 & 11 (rstudio#1633)
If the width is made very wide in showcase mode with side-by-side arrangement, the app shrinks to almost nothing. For some reason the zoom CSS property (which we set using jQuery.animate) is set to "1%" instead of "1". Numbers and percentages are equally valid here, and the issue goes away if we use percentage.
1 parent 0c24da2 commit 9bff15a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/www/shared/shiny-showcase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
var app = document.getElementById("showcase-app-container");
218218
$(app).animate({
219219
width: appWidth + "px",
220-
zoom: zoom
220+
zoom: (zoom*100) + "%"
221221
}, animate ? animateMs : 0);
222222
};
223223

0 commit comments

Comments
 (0)