1
0
Fork 0
forked from 0x2620/oxjs

Ox.divideInt -> Ox.splitInt

This commit is contained in:
rolux 2012-06-25 16:43:03 +02:00
commit f5782c475b
5 changed files with 22 additions and 23 deletions

View file

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

View file

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

View file

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

View file

@ -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,