SCROLLBAR_SIZE -> UI.SCROLLBAR_SIZE
This commit is contained in:
parent
ae9d2768c9
commit
bd190b4695
25 changed files with 62 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue