fix script dialog layout
This commit is contained in:
parent
0e74b41d98
commit
60e78fc428
1 changed files with 4 additions and 4 deletions
|
@ -7,14 +7,14 @@ pandora.ui.scriptDialog = function() {
|
||||||
var dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
var dialogHeight = Math.round((window.innerHeight - 48) * 0.75),
|
||||||
dialogWidth = Math.round(window.innerWidth * 0.75),
|
dialogWidth = Math.round(window.innerWidth * 0.75),
|
||||||
$text = Ox.$('<div>')
|
$text = Ox.$('<div>')
|
||||||
.css({height: '32px', margin: '16px'})
|
.css({height: '16px', margin: '16px'})
|
||||||
.html(Ox._(
|
.html(Ox._(
|
||||||
'Any JavaScript you paste here will run on load.<br>'
|
'Any JavaScript you paste here will run on load. '
|
||||||
+ 'If you ever need to bypass it, '
|
+ 'If you ever need to bypass it, '
|
||||||
+ 'press escape while the page is loading.'
|
+ 'press escape while the page is loading.'
|
||||||
)),
|
)),
|
||||||
$input = Ox.Input({
|
$input = Ox.Input({
|
||||||
height: dialogHeight - 32,
|
height: dialogHeight - 64,
|
||||||
type: 'textarea',
|
type: 'textarea',
|
||||||
value: pandora.user.script || '',
|
value: pandora.user.script || '',
|
||||||
width: dialogWidth - 32
|
width: dialogWidth - 32
|
||||||
|
@ -59,7 +59,7 @@ pandora.ui.scriptDialog = function() {
|
||||||
dialogHeight = data.height;
|
dialogHeight = data.height;
|
||||||
dialogWidth = data.width;
|
dialogWidth = data.width;
|
||||||
$input.options({
|
$input.options({
|
||||||
height: dialogHeight - 32,
|
height: dialogHeight - 64,
|
||||||
width: dialogWidth - 32
|
width: dialogWidth - 32
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue