forked from 0x2620/oxjs
Ox.divideInt -> Ox.splitInt
This commit is contained in:
parent
703003bd2b
commit
f5782c475b
5 changed files with 22 additions and 23 deletions
|
|
@ -49,7 +49,7 @@ Ox.CheckboxGroup = function(options, self) {
|
|||
|
||||
self.$checkboxes = [];
|
||||
if (self.options.type == 'group') {
|
||||
self.checkboxWidth = Ox.divideInt(
|
||||
self.checkboxWidth = Ox.splitInt(
|
||||
self.options.width + (self.options.checkboxes.length - 1) * 6,
|
||||
self.options.checkboxes.length
|
||||
).map(function(v, i) {
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ Ox.InputGroup = function(options, self) {
|
|||
|
||||
function setWidths() {
|
||||
var length = self.options.inputs.length,
|
||||
inputWidths = Ox.divideInt(
|
||||
inputWidths = Ox.splitInt(
|
||||
self.options.width - Ox.sum(self.options.separators.map(function(v) {
|
||||
return v.width;
|
||||
})), length
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ Ox.Range = function(options, self) {
|
|||
self.thumbSize = Math.max(self.trackSize / self.values, self.options.thumbSize);
|
||||
self.trackImageWidths = self.trackImages == 1
|
||||
? [self.trackSize - 16]
|
||||
: Ox.divideInt(self.trackSize - 2, self.trackImages);
|
||||
: Ox.splitInt(self.trackSize - 2, self.trackImages);
|
||||
self.trackColorStart = self.options.trackGradient
|
||||
? self.thumbSize / 2 / self.options.size : 0;
|
||||
self.trackColorStep = self.options.trackGradient
|
||||
|
|
|
|||
|
|
@ -1019,7 +1019,7 @@ Ox.VideoEditor = function(options, self) {
|
|||
}
|
||||
if (self.options.videoSize == 'small') {
|
||||
width = 0;
|
||||
widths = Ox.divideInt(contentWidth - 4 * self.margin, 3);
|
||||
widths = Ox.splitInt(contentWidth - 4 * self.margin, 3);
|
||||
[1, 0, 2].forEach(function(v, i) {
|
||||
size.player[v] = {
|
||||
left: (i + 0.5) * self.margin + width,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue