diff --git a/src/TestPanel.js b/src/TestPanel.js index f934e7e..d15211a 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -70,13 +70,26 @@ function PageControl(p) { for (var i=0;i) } + if (p.children!==undefined) { + pages.push(
  • {p.children}
  • ) + } + //console.log(JSON.stringify(p.children)) return pages.length>0&& } function ExpandTooltip(p) { - return <>{p.children}{p.tooltip} + return <>{p.children} { + const d = document.documentElement; + left = Math.min(d.clientWidth - node.clientWidth, left); + top = Math.min(d.clientHeight - node.clientHeight, top); + left = Math.max(0, left); + top = Math.max(0, top); + return { top, left } +} }>{p.tooltip} } function Class(p) {