forked from Botanical/BotanJS
minor bug fixes
This commit is contained in:
parent
8f05e37ee4
commit
2778e12f38
@ -23,7 +23,7 @@
|
|||||||
, "AS3" , "as3"
|
, "AS3" , "as3"
|
||||||
, "bash" , "bash"
|
, "bash" , "bash"
|
||||||
, "C#" , "csharp"
|
, "C#" , "csharp"
|
||||||
, "C/C++" , "c"
|
, "C/C++" , "cpp"
|
||||||
, "CSS" , "css"
|
, "CSS" , "css"
|
||||||
, "php" , "php"
|
, "php" , "php"
|
||||||
, "Python" , "python"
|
, "Python" , "python"
|
||||||
|
@ -111,6 +111,20 @@
|
|||||||
IDOMElement(s).addEventListener("Change", selectionChanged.bind({size: "small"}));
|
IDOMElement(s).addEventListener("Change", selectionChanged.bind({size: "small"}));
|
||||||
IDOMElement(m).addEventListener("Change", selectionChanged.bind({size: "medium"}));
|
IDOMElement(m).addEventListener("Change", selectionChanged.bind({size: "medium"}));
|
||||||
IDOMElement(l).addEventListener("Change", selectionChanged.bind({size: "large"}));
|
IDOMElement(l).addEventListener("Change", selectionChanged.bind({size: "large"}));
|
||||||
|
|
||||||
|
var hasValue = _stage.getDAttribute( "size" );
|
||||||
|
if( hasValue )
|
||||||
|
{
|
||||||
|
switch( hasValue )
|
||||||
|
{
|
||||||
|
case "small": s.checked = 1; break;
|
||||||
|
case "medium": m.checked = 1; break;
|
||||||
|
case "large": l.checked = 1; break;
|
||||||
|
}
|
||||||
|
|
||||||
|
selectionChanged.bind({ size: hasValue })();
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "audio":
|
case "audio":
|
||||||
// TODO
|
// TODO
|
||||||
@ -143,7 +157,7 @@
|
|||||||
]
|
]
|
||||||
, [
|
, [
|
||||||
new DataKey( "value", hash )
|
new DataKey( "value", hash )
|
||||||
, new DataKey( "size", "large" )
|
, new DataKey( "size", override.size || "large" )
|
||||||
, new IKey( "style", "max-height: 150px;" )
|
, new IKey( "style", "max-height: 150px;" )
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
@ -48,6 +48,11 @@
|
|||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea.v_snippet_input {
|
||||||
|
font-family: monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
.v_instruction {
|
.v_instruction {
|
||||||
padding: 0.2em 0;
|
padding: 0.2em 0;
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
width: 225px;
|
width: 225px;
|
||||||
height: 325px;
|
height: 325px;
|
||||||
|
|
||||||
margin: 1em;
|
margin: 0 2em 2em 0;
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user