fix sizing of demo
This commit is contained in:
parent
4176e6f079
commit
37f5548289
1 changed files with 3 additions and 2 deletions
|
|
@ -512,7 +512,8 @@ exports.launch = function(env) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onResize() {
|
function onResize() {
|
||||||
var width = (document.documentElement.clientWidth - 280);
|
var left = env.split.$container.offsetLeft;
|
||||||
|
var width = document.documentElement.clientWidth - left;
|
||||||
container.style.width = width + "px";
|
container.style.width = width + "px";
|
||||||
container.style.height = document.documentElement.clientHeight + "px";
|
container.style.height = document.documentElement.clientHeight + "px";
|
||||||
env.split.resize();
|
env.split.resize();
|
||||||
|
|
@ -520,7 +521,7 @@ exports.launch = function(env) {
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onresize = onResize;
|
window.onresize = onResize;
|
||||||
onResize();
|
env.editor.renderer.onResize(true)
|
||||||
|
|
||||||
event.addListener(container, "dragover", function(e) {
|
event.addListener(container, "dragover", function(e) {
|
||||||
return event.preventDefault(e);
|
return event.preventDefault(e);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue