forked from 0x2620/pandora
Ox.divideInt -> Ox.splitInt
This commit is contained in:
parent
2b50ba84bf
commit
c5ddaec094
2 changed files with 7 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// fixme: remove
|
// FIXME: remove
|
||||||
|
|
||||||
pandora.ui.homePage = function() {
|
pandora.ui.homePage = function() {
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ pandora.ui.homePage = function() {
|
||||||
.appendTo($center);
|
.appendTo($center);
|
||||||
|
|
||||||
that.resize = function() {
|
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'});
|
$left.css({width: size[0] + 'px'});
|
||||||
$center.css({width: size[1] + 'px'});
|
$center.css({width: size[1] + 'px'});
|
||||||
$logo.css({width: size[1] + 'px'});
|
$logo.css({width: size[1] + 'px'});
|
||||||
|
|
|
@ -529,8 +529,11 @@ pandora.getClipsQuery = function() {
|
||||||
}());
|
}());
|
||||||
|
|
||||||
pandora.getFilterSizes = function() {
|
pandora.getFilterSizes = function() {
|
||||||
return Ox.divideInt(
|
return Ox.splitInt(
|
||||||
window.innerWidth - pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize - 1, 5
|
window.innerWidth
|
||||||
|
- pandora.user.ui.showSidebar * pandora.user.ui.sidebarSize
|
||||||
|
- 1,
|
||||||
|
5
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue