Fix viewer controls position
This commit is contained in:
parent
cdb9a92c21
commit
fd4f15d9f2
@ -83,6 +83,7 @@ var odfViewer = {
|
|||||||
$(attachToolbarTo).prepend(odfToolbarHtml);
|
$(attachToolbarTo).prepend(odfToolbarHtml);
|
||||||
$('#odf-toolbar').css({position:'fixed'});
|
$('#odf-toolbar').css({position:'fixed'});
|
||||||
} else {
|
} else {
|
||||||
|
$('#controls').css({left:'0px'});
|
||||||
$(attachToolbarTo).append(odfToolbarHtml);
|
$(attachToolbarTo).append(odfToolbarHtml);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,6 +102,9 @@ var odfViewer = {
|
|||||||
FileList.setViewerMode(false);
|
FileList.setViewerMode(false);
|
||||||
$('#odf-toolbar').remove();
|
$('#odf-toolbar').remove();
|
||||||
$('#odf-canvas').remove();
|
$('#odf-canvas').remove();
|
||||||
|
if (!odfViewer.isDocuments){
|
||||||
|
$('#controls').css({left:'auto'});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user