Skip to content

Commit 8aff6cc

Browse files
committed
fix: issue #7
1 parent 7a4b791 commit 8aff6cc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/embed-test.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,12 @@ export default () => {
195195

196196
const setHeight = function (height) {
197197
if (optStr("height")) return;
198+
// if (document.getElementById("vanilla" + id).style["height"] === ( height - 21 ) + 'px') {
199+
// return
200+
// }
198201

199-
document.getElementById("vanilla" + id).style["height"] = height + "px";
202+
// document.getElementById("vanilla" + id).style["height"] = height + "px";
203+
document.getElementById("vanilla" + id).style["height"] = 'calc(100vh - 76px)'
200204
if (window.gadgets && gadgets.window && gadgets.window.adjustHeight) {
201205
try {
202206
gadgets.window.adjustHeight();
@@ -295,7 +299,7 @@ export default () => {
295299
vanillaUrl(currentPath);
296300
vanillaIframe.src =
297301
"https://vanilla.topcoder-dev.com/?remote=https://local.topcoder-dev.com/forums&locale=";
298-
vanillaIframe.scrolling = "no";
302+
vanillaIframe.scrolling = "yes";
299303
vanillaIframe.frameBorder = "0";
300304
vanillaIframe.allowTransparency = true;
301305
vanillaIframe.border = "0";

src/root.component.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import React, { useEffect } from "react";
22
// import { VANILLA_EMBED_JS } from "./constants";
3+
import { disableSidebarForRoute } from "@topcoder/micro-frontends-navbar-app";
34
import "styles/global.scss";
45
import ebmedJs from "./embed-test";
56

67
export default function Root() {
78
useEffect(() => {
9+
disableSidebarForRoute("/forums/*");
810
ebmedJs();
911
// embed.js
1012
// const script = document.createElement("script");

0 commit comments

Comments
 (0)