File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,12 @@ export default () => {
195
195
196
196
const setHeight = function ( height ) {
197
197
if ( optStr ( "height" ) ) return ;
198
+ // if (document.getElementById("vanilla" + id).style["height"] === ( height - 21 ) + 'px') {
199
+ // return
200
+ // }
198
201
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)'
200
204
if ( window . gadgets && gadgets . window && gadgets . window . adjustHeight ) {
201
205
try {
202
206
gadgets . window . adjustHeight ( ) ;
@@ -295,7 +299,7 @@ export default () => {
295
299
vanillaUrl ( currentPath ) ;
296
300
vanillaIframe . src =
297
301
"https://vanilla.topcoder-dev.com/?remote=https://local.topcoder-dev.com/forums&locale=" ;
298
- vanillaIframe . scrolling = "no " ;
302
+ vanillaIframe . scrolling = "yes " ;
299
303
vanillaIframe . frameBorder = "0" ;
300
304
vanillaIframe . allowTransparency = true ;
301
305
vanillaIframe . border = "0" ;
Original file line number Diff line number Diff line change 1
1
import React , { useEffect } from "react" ;
2
2
// import { VANILLA_EMBED_JS } from "./constants";
3
+ import { disableSidebarForRoute } from "@topcoder/micro-frontends-navbar-app" ;
3
4
import "styles/global.scss" ;
4
5
import ebmedJs from "./embed-test" ;
5
6
6
7
export default function Root ( ) {
7
8
useEffect ( ( ) => {
9
+ disableSidebarForRoute ( "/forums/*" ) ;
8
10
ebmedJs ( ) ;
9
11
// embed.js
10
12
// const script = document.createElement("script");
You can’t perform that action at this time.
0 commit comments