Ox.divideInt -> Ox.splitInt

This commit is contained in:
rolux 2012-06-25 16:37:45 +02:00
parent 2b50ba84bf
commit c5ddaec094
2 changed files with 7 additions and 4 deletions

View file

@ -2,7 +2,7 @@
'use strict';
// fixme: remove
// FIXME: remove
pandora.ui.homePage = function() {
@ -66,7 +66,7 @@ pandora.ui.homePage = function() {
.appendTo($center);
that.resize = function() {
var size = Ox.divideInt(window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1 - 64, 3);
var size = Ox.splitInt(window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1 - 64, 3);
$left.css({width: size[0] + 'px'});
$center.css({width: size[1] + 'px'});
$logo.css({width: size[1] + 'px'});

View file

@ -529,8 +529,11 @@ pandora.getClipsQuery = function() {
}());
pandora.getFilterSizes = function() {
return Ox.divideInt(
window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1, 5
return Ox.splitInt(
window.innerWidth
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize
- 1,
5
);
};