multifader: use flex instead of % size (issue #78)
This commit is contained in:
parent
7a24dd0426
commit
3ae33616af
2 changed files with 1 additions and 6 deletions
|
|
@ -90,7 +90,6 @@ module.exports = class Multifader extends _matrices_base {
|
|||
data.css = ''
|
||||
|
||||
var element = parsewidgets([data],this.widget)
|
||||
element[0].style.setProperty(this.getProp('horizontal')?'height':'width', 100/this.strips + '%')
|
||||
element[0].classList.add('not-editable')
|
||||
|
||||
if (this.getProp('traversing')) element.find('canvas').off('drag')
|
||||
|
|
|
|||
|
|
@ -14,7 +14,6 @@
|
|||
.matrix {
|
||||
flex: 1 1 100%;
|
||||
overflow: auto;
|
||||
// background: var(--color-bg);
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: row;
|
||||
|
|
@ -23,8 +22,6 @@
|
|||
> .widget {
|
||||
min-height: 0;
|
||||
min-width: 0;
|
||||
// margin:0!important;
|
||||
// height: calc( 100% / var(--rows) - var(--spacing));
|
||||
height: auto;
|
||||
width: calc( 100% / var(--columns) - var(--spacing));
|
||||
margin: calc(var(--spacing) / 2);
|
||||
|
|
@ -37,7 +34,6 @@
|
|||
|
||||
.multifader-container {
|
||||
.matrix {
|
||||
// padding:0!important;
|
||||
align-items:stretch;
|
||||
flex-wrap: nowrap;
|
||||
&.horizontal {
|
||||
|
|
@ -45,7 +41,7 @@
|
|||
display: flex;
|
||||
.fader-container {
|
||||
flex-direction: row;
|
||||
width: 100%;
|
||||
flex:1;
|
||||
.fader {
|
||||
width:100%;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue