SCROLLBAR_SIZE -> UI.SCROLLBAR_SIZE

This commit is contained in:
rolux 2014-09-26 14:12:25 +02:00
commit bd190b4695
25 changed files with 62 additions and 62 deletions

View file

@ -465,7 +465,7 @@ pandora.ui.documentsPanel = function(options) {
function getPreviewSize() {
var ratio = $list.value($list.options('selected')[0], 'ratio'),
size = ui.documentSize - 16 - Ox.SCROLLBAR_SIZE,
size = ui.documentSize - 16 - Ox.UI.SCROLLBAR_SIZE,
height = ratio > 1 ? size / ratio : size,
width = ratio > 1 ? size : size * ratio,
left = Math.floor((size - width) / 2);
@ -523,7 +523,7 @@ pandora.ui.documentsPanel = function(options) {
|| pandora.site.capabilities.canEditDocuments[pandora.user.level]
|| options.editable,
labelWidth = 80,
width = ui.documentSize - 16 - Ox.SCROLLBAR_SIZE;
width = ui.documentSize - 16 - Ox.UI.SCROLLBAR_SIZE;
return isItemView
? Ox.Element()
.css({textAlign: 'center'})
@ -778,7 +778,7 @@ pandora.ui.documentsPanel = function(options) {
function resizeItem() {
var size = getPreviewSize(),
width = ui.documentSize - 16 - Ox.SCROLLBAR_SIZE;
width = ui.documentSize - 16 - Ox.UI.SCROLLBAR_SIZE;
$preview && $preview.options({
height: size.height,
width: size.width