Skip to content

Commit

Permalink
Merge pull request #3091 from plotly/fix-vertical-modebar
Browse files Browse the repository at this point in the history
prevent vertical modebar from overflowing
  • Loading branch information
antoinerg authored Oct 10, 2018
2 parents cc21e5c + d225b45 commit 5c4094f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build/plotcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var rules = {
"X .modebar-group": "float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;",
"X .modebar-btn": "position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;",
"X .modebar-btn svg": "position:relative;top:2px;",
"X .modebar.vertical": "top:-1px;",
"X .modebar.vertical": "top:-1px;display:flex;flex-direction:column;flex-wrap:wrap;height:100%;align-content:flex-end;",
"X .modebar.vertical .modebar-group": "display:block;float:none;margin-left:0px;margin-bottom:8px;",
"X .modebar.vertical .modebar-group .modebar-btn": "display:block;text-align:center;",
"X [data-title]:before,X [data-title]:after": "position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;",
Expand Down
5 changes: 5 additions & 0 deletions src/css/_modebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@

.modebar.vertical {
top: -1px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
height: 100%;
align-content: flex-end;
.modebar-group {
display: block;
float: none;
Expand Down

0 comments on commit 5c4094f

Please sign in to comment.