Skip to content
Snippets Groups Projects
Commit b9b6b9dd authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Text area now scrolls correctly

parent 5ce84608
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
"id": "id6", "id": "id6",
"name": "Eulertouren", "name": "Eulertouren",
"image": "eulertouren.png", "image": "eulertouren.png",
"description": "Ein Eulerkreis ist in der Graphentheorie ein Zyklus, der alle Kanten eines Graphen genau einmal enthält. Ein offener Eulerzug (auch Eulerpfad oder Eulerweg) ist gegeben, wenn Start- und Endknoten nicht gleich sein müssen, wenn also statt eines Zyklus lediglich eine Kantenfolge verlangt wird, welche jede Kante des Graphen genau einmal enthält. Ein bekanntes Beispiel ist das Haus vom Nikolaus." "description": "Ein Eulerkreis ist in der Graphentheorie ein Zyklus, der alle Kanten eines Graphen genau einmal enthält. Ein offener Eulerzug (auch Eulerpfad oder Eulerweg) ist gegeben, wenn Start- und Endknoten nicht gleich sein müssen, wenn also statt eines Zyklus lediglich eine Kantenfolge verlangt wird, welche jede Kante des Graphen genau einmal enthält. Ein bekanntes Beispiel ist das Haus vom Nikolaus. Dieser Text braucht noch eine Zeile, damit er gescrollt werden muss."
}, },
{ {
"id": "id7", "id": "id7",
......
...@@ -35,8 +35,6 @@ class InfoOverlay { ...@@ -35,8 +35,6 @@ class InfoOverlay {
bottomContainerLinkDiv.className = 'bottom-container-links'; bottomContainerLinkDiv.className = 'bottom-container-links';
bottomContainerDiv.appendChild(bottomContainerLinkDiv); bottomContainerDiv.appendChild(bottomContainerLinkDiv);
//const linkClasses = this.graph.getLinkClasses();
for(const [cls, color] of Object.entries(this.graph.edgeColors)) { for(const [cls, color] of Object.entries(this.graph.edgeColors)) {
const navTab = document.createElement('div'); const navTab = document.createElement('div');
...@@ -98,9 +96,13 @@ class InfoOverlay { ...@@ -98,9 +96,13 @@ class InfoOverlay {
close.className = 'close-button'; close.className = 'close-button';
overlayNode.appendChild(close); overlayNode.appendChild(close);
const infoArea = document.createElement('div');
infoArea.className = 'detail-view-info-area';
overlayNode.appendChild(infoArea);
const topArea = document.createElement('div'); const topArea = document.createElement('div');
topArea.className = 'detail-view-top-area'; topArea.className = 'detail-view-top-area';
overlayNode.appendChild(topArea); infoArea.appendChild(topArea);
const nodeImage = document.createElement('img'); const nodeImage = document.createElement('img');
nodeImage.id = 'infoOverlayImage'; nodeImage.id = 'infoOverlayImage';
...@@ -116,7 +118,7 @@ class InfoOverlay { ...@@ -116,7 +118,7 @@ class InfoOverlay {
const textArea = document.createElement('div'); const textArea = document.createElement('div');
textArea.className = 'detail-view-text-area'; textArea.className = 'detail-view-text-area';
overlayNode.appendChild(textArea); infoArea.appendChild(textArea);
const description = document.createElement('p'); const description = document.createElement('p');
description.id = 'infoOverlayDescription'; description.id = 'infoOverlayDescription';
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
pointer-events: all; pointer-events: all;
z-index: 99; z-index: 99;
cursor: pointer; cursor: pointer;
right: 10px; right: 30px;
top: 5px; top: 5px;
position: absolute; position: absolute;
font-size: 20px; font-size: 20px;
...@@ -47,6 +47,11 @@ ...@@ -47,6 +47,11 @@
margin-bottom: 20px; margin-bottom: 20px;
} }
.detail-view-info-area {
overflow-y: auto;
height: 100%;
}
.detail-view-top-area { .detail-view-top-area {
position: relative; position: relative;
width: 100%; width: 100%;
...@@ -58,8 +63,7 @@ ...@@ -58,8 +63,7 @@
display: block; display: block;
padding-left: 25px; padding-left: 25px;
padding-right: 25px; padding-right: 25px;
height: 45%; padding-bottom: 130px;
overflow-y: scroll;
} }
.detail-view-headline { .detail-view-headline {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment