From 5ef6c362b000c17651feca2b2677b084953e134b Mon Sep 17 00:00:00 2001 From: Johannes Zillmann Date: Wed, 29 Mar 2017 08:15:39 +0200 Subject: [PATCH] Affix for debug panel --- package.json | 1 + src/javascript/components/DebugView.jsx | 155 ++++++++++++------------ 2 files changed, 80 insertions(+), 76 deletions(-) diff --git a/package.json b/package.json index ba460bb..99271ee 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "react-dom": "^15.4.2", "react-dropzone": "^3.9.2", "react-icons": "^2.2.3", + "react-overlays": "^0.6.12", "remarkable": "^1.7.1" }, "devDependencies": { diff --git a/src/javascript/components/DebugView.jsx b/src/javascript/components/DebugView.jsx index b0df149..31399ab 100644 --- a/src/javascript/components/DebugView.jsx +++ b/src/javascript/components/DebugView.jsx @@ -10,6 +10,7 @@ import Label from 'react-bootstrap/lib/Label' import Checkbox from 'react-bootstrap/lib/Checkbox' import Collapse from 'react-bootstrap/lib/Collapse' import Panel from 'react-bootstrap/lib/Panel' +import AutoAffix from 'react-overlays/lib/AutoAffix'; import ParseResult from '../models/ParseResult.jsx'; @@ -115,88 +116,90 @@ export default class DebugView extends React.Component { return (
- - - { lastTransformation.showPageSelection() && + +
+ + { lastTransformation.showPageSelection() && + + + + } - - } - - - - - - - - -
+
+ + +
+
+ +
-
- - -
+ + + + + + { ' ' } + + + + + { transformationMenuItems } + + + + { showModificationCheckbox && + + Show only modifications + } + + + + Show Statistics + + +
+
- - - - - - { ' ' } - - - - - { transformationMenuItems } - - - - { showModificationCheckbox && - - Show only modifications - } - - - - Show Statistics - - - - - -
- - -
    - { statisticsAsList } -
-
-
-
+ + + + + +
    + { statisticsAsList } +
+
+
+ + + + + { !this.state.showStatistics &&
}