Fixed a bug where this.maxAdaptiveWidth was accidentally added in master (#44)

This commit is contained in:
euvl
2017-07-05 15:24:51 +01:00
parent 9aeee80f18
commit b8ba39ebca
3 changed files with 33 additions and 19 deletions

13
dist/index.js vendored

File diff suppressed because one or more lines are too long

13
dist/ssr.index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -75,22 +75,22 @@
return value >= 0
}
},
/*
adaptiveMaxWidth: {
maxAdaptiveWidth: {
type: Number,
default: 1,
validator (value) {
return value > 0 && value <= 1
}
default: 1
// ,
// validator (value) {
// return value > 0 && value <= 1
// }
},
adaptiveMaxHeight: {
maxAdaptiveHeight: {
type: Number,
default: 1,
validator (value) {
return value > 0 && value <= 1
}
default: 1
// ,
// validator (value) {
// return value > 0 && value <= 1
// }
},
*/
width: {
type: Number,
default: 600,
@@ -255,7 +255,7 @@
this.modal.width)
this.modal.height = inRange(
0,
this.window.height * this.maxAdaptiveWidth,
this.window.height * this.maxAdaptiveHeight,
this.modal.height)
}
},