Etherpad fills all horizontal space.
This commit is contained in:
parent
2cbdc43e78
commit
7298e4df4a
|
@ -81,11 +81,6 @@ var Etherpad = (function (my) {
|
||||||
= window.innerHeight - remoteVideos.outerHeight();
|
= window.innerHeight - remoteVideos.outerHeight();
|
||||||
var availableWidth = Util.getAvailableVideoWidth();
|
var availableWidth = Util.getAvailableVideoWidth();
|
||||||
|
|
||||||
var aspectRatio = 16.0 / 9.0;
|
|
||||||
if (availableHeight < availableWidth / aspectRatio) {
|
|
||||||
availableWidth = Math.floor(availableHeight * aspectRatio);
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#etherpad>iframe').width(availableWidth);
|
$('#etherpad>iframe').width(availableWidth);
|
||||||
$('#etherpad>iframe').height(availableHeight);
|
$('#etherpad>iframe').height(availableHeight);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue