From 95cc0eeaa26fb125477796a6f83cdbfed34cd5a5 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 5 Mar 2013 12:53:48 +0000 Subject: [PATCH] update help and api dialogs --- static/js/pandora/apiDialog.js | 10 +++++----- static/js/pandora/helpDialog.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/static/js/pandora/apiDialog.js b/static/js/pandora/apiDialog.js index 08438cae..7fdda865 100644 --- a/static/js/pandora/apiDialog.js +++ b/static/js/pandora/apiDialog.js @@ -46,14 +46,14 @@ pandora.ui.apiDialog = function() { ], closeButton: true, content: $loading, - height: Math.round((window.innerHeight - 24) * 0.75), + height: 384, keys: {escape: 'close'}, maximizeButton: true, minHeight: 256, - minWidth: 576, + minWidth: 544 + Ox.UI.SCROLLBAR_SIZE, removeOnClose: true, title: 'API Documentation', - width: Math.round(window.innerWidth * 0.75) + width: 672 + Ox.UI.SCROLLBAR_SIZE }) .bindEvent({ close: function() { @@ -89,7 +89,7 @@ pandora.ui.apiDialog = function() { { id: 'title', visible: true, - width: 192 - Ox.UI.SCROLLBAR_SIZE + width: 128 - Ox.UI.SCROLLBAR_SIZE } ], items: items, @@ -116,7 +116,7 @@ pandora.ui.apiDialog = function() { $panel = Ox.SplitPanel({ elements: [ - {element: $list, size: 192}, + {element: $list, size: 128}, {element: $text} ], orientation: 'horizontal' diff --git a/static/js/pandora/helpDialog.js b/static/js/pandora/helpDialog.js index 162c1ef4..ebbcea57 100644 --- a/static/js/pandora/helpDialog.js +++ b/static/js/pandora/helpDialog.js @@ -48,14 +48,14 @@ pandora.ui.helpDialog = function() { ], closeButton: true, content: $loading, - height: Math.round((window.innerHeight - 24) * 0.75), + height: 384, keys: {escape: 'close'}, maximizeButton: true, minHeight: 256, - minWidth: 576, + minWidth: 544 + Ox.UI.SCROLLBAR_SIZE, removeOnClose: true, title: 'Help', - width: Math.round(window.innerWidth * 0.75) + width: 672 + Ox.UI.SCROLLBAR_SIZE }) .bindEvent({ close: function() {