fix hotbuttons css/layout issues
This commit is contained in:
parent
69ef732caf
commit
ad05ca1515
1 changed files with 20 additions and 21 deletions
|
|
@ -31,7 +31,7 @@ plugin_handler.add('hotbuttons', (function () {
|
||||||
var addButtonsUI = function () {
|
var addButtonsUI = function () {
|
||||||
var buttons = $( [
|
var buttons = $( [
|
||||||
'<div id="buttons" class="split split-vertical">',
|
'<div id="buttons" class="split split-vertical">',
|
||||||
' <div id="buttonsform" class="wrapper">',
|
' <div id="buttonsform">',
|
||||||
' <div id="buttonscontrol" class="input-group">',
|
' <div id="buttonscontrol" class="input-group">',
|
||||||
' <button class="btn" id="assign_button0" type="button" value="button0">unassigned</button>',
|
' <button class="btn" id="assign_button0" type="button" value="button0">unassigned</button>',
|
||||||
' <button class="btn" id="assign_button1" type="button" value="button1">unassigned</button>',
|
' <button class="btn" id="assign_button1" type="button" value="button1">unassigned</button>',
|
||||||
|
|
@ -48,14 +48,13 @@ plugin_handler.add('hotbuttons', (function () {
|
||||||
].join("\n") );
|
].join("\n") );
|
||||||
|
|
||||||
// Add buttons in front of the existing #inputform
|
// Add buttons in front of the existing #inputform
|
||||||
buttons.insertBefore('#inputform');
|
$('#input').prev().replaceWith(buttons);
|
||||||
$('#inputform').addClass('split split-vertical');
|
|
||||||
|
|
||||||
Split(['#buttons','#inputform'], {
|
Split(['#main','#buttons','#input'], {
|
||||||
|
sizes: [85,5,10],
|
||||||
direction: 'vertical',
|
direction: 'vertical',
|
||||||
sizes: [50,50],
|
|
||||||
gutterSize: 4,
|
gutterSize: 4,
|
||||||
minSize: 150,
|
minSize: [150,20,50],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue