multifader: use flex instead of % size (issue #78)

This commit is contained in:
jean-emmanuel 2017-09-01 18:02:43 +02:00
parent 7a24dd0426
commit 3ae33616af
2 changed files with 1 additions and 6 deletions

View file

@ -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')

View file

@ -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%;
}