Skip to content

Commit

Permalink
Merge pull request #103 from cu-mkp/dev
Browse files Browse the repository at this point in the history
Fixing navigation behavior on scroll
  • Loading branch information
ajolipa committed Apr 23, 2024
2 parents a23fad6 + d2de5ff commit 3e84480
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion editioncrafter-umd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cu-mkp/editioncrafter-umd",
"version": "0.2.9",
"version": "0.2.10",
"homepage": "https://cu-mkp.github.io/editioncrafter/",
"description": "A simple digital critical edition publication tool",
"private": false,
Expand Down
2 changes: 1 addition & 1 deletion editioncrafter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cu-mkp/editioncrafter",
"version": "0.2.9",
"version": "0.2.10",
"description": "A simple digital critical edition publication tool",
"homepage": "https://cu-mkp.github.io/editioncrafter/",
"private": false,
Expand Down
3 changes: 2 additions & 1 deletion editioncrafter/src/component/SplitPaneView.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SplitPaneView extends Component {
const split_third = 1 - split_left - split_right;
this.state = {
style: {
gridTemplateColumns: `${split_left}fr ${this.dividerWidth}px ${split_right}fr ${this.dividerWidth}px ${split_third}fr`,
gridTemplateColumns: `${this.splitFraction}fr ${this.dividerWidth}px ${1 - this.splitFraction - this.splitFractionRight}fr ${this.dividerWidth}px ${this.splitFractionRight}fr`,
},
};

Expand Down Expand Up @@ -55,6 +55,7 @@ class SplitPaneView extends Component {
if (left_viewWidth >= this.leftPaneMinWidth
&& right_viewWidth >= this.rightPaneMinWidth
&& third_viewWidth >= this.thirdPaneMinWidth) {
console.log(whole, left_viewWidth, third_viewWidth);
this.splitFraction = (whole === 0) ? 0.0 : left_viewWidth / whole;
this.splitFractionRight = (whole === 0) ? 0.0 : third_viewWidth / whole;
this.updateUI();
Expand Down
4 changes: 4 additions & 0 deletions editioncrafter/src/scss/_imageView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
max-height: 100dvh;
}

.imageViewComponent .navigationComponent {
position: absolute;
}

.a9s-annotation.a9s-annotation.selected > rect,
.a9s-annotation.a9s-annotation.selected > polygon
{
Expand Down
2 changes: 1 addition & 1 deletion editioncrafter/src/scss/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#tool-bar-buttons{
font-size: 15px;
}
position: absolute;
position: sticky;
display: none;
z-index: 2;
height:48px;
Expand Down

0 comments on commit 3e84480

Please sign in to comment.