|
@ -27,6 +27,8 @@ import PropertyOutsideSpace from "./tab_content/PropertyOutsideSpace"; |
|
|
import PropertyNotices from "./tab_content/PropertyNotices"; |
|
|
import PropertyNotices from "./tab_content/PropertyNotices"; |
|
|
import PropertyContact from "./tab_content/PropertyContact"; |
|
|
import PropertyContact from "./tab_content/PropertyContact"; |
|
|
|
|
|
|
|
|
|
|
|
var sizeAdded = false; |
|
|
|
|
|
|
|
|
function StartPage5({ redirectLoc }) { |
|
|
function StartPage5({ redirectLoc }) { |
|
|
const [activeTabIndex, setActiveTabIndex] = useState(0); |
|
|
const [activeTabIndex, setActiveTabIndex] = useState(0); |
|
|
|
|
|
|
|
@ -44,6 +46,16 @@ function StartPage5({ redirectLoc }) { |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
const onActiveTabChange = (index) => { |
|
|
const onActiveTabChange = (index) => { |
|
|
|
|
|
if (!sizeAdded) { |
|
|
|
|
|
const scrollableTabList = document.getElementById("scrollTabList"); |
|
|
|
|
|
const tabSize = scrollableTabList ? scrollableTabList.offsetHeight : 0; |
|
|
|
|
|
|
|
|
|
|
|
var container = document.getElementById("heatmapOverlay"); |
|
|
|
|
|
container.style.height = document.body.scrollHeight + tabSize + "px"; |
|
|
|
|
|
document.getElementById("studySiteContainer").style.height = |
|
|
|
|
|
document.body.scrollHeight + tabSize + "px"; |
|
|
|
|
|
sizeAdded = true; |
|
|
|
|
|
} |
|
|
setActiveTabIndex(index); |
|
|
setActiveTabIndex(index); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -68,7 +80,7 @@ function StartPage5({ redirectLoc }) { |
|
|
<Spacer inline w={0.35} /> |
|
|
<Spacer inline w={0.35} /> |
|
|
Overview |
|
|
Overview |
|
|
</Tab> |
|
|
</Tab> |
|
|
<Tab actionType="button" redirectLoc={redirectLoc}> |
|
|
|
|
|
|
|
|
<Tab actionType="text"> |
|
|
<Star viewBox="0 -8 24 32" size={18} /> |
|
|
<Star viewBox="0 -8 24 32" size={18} /> |
|
|
<Spacer inline w={0.35} /> |
|
|
<Spacer inline w={0.35} /> |
|
|
Features |
|
|
Features |
|
|