Fixing resolving of Config for projector resolution (fixes #2349)
This commit is contained in:
parent
54dd21dce0
commit
fd78ccdb01
@ -67,14 +67,16 @@ angular.module('OpenSlidesApp.core.projector', ['OpenSlidesApp.core'])
|
|||||||
$scope.$watch(function () {
|
$scope.$watch(function () {
|
||||||
return Config.lastModified();
|
return Config.lastModified();
|
||||||
}, function () {
|
}, function () {
|
||||||
var conf = Config.get('projector_resolution').value;
|
|
||||||
// With multiprojector, get the resolution from Prjector.get(pk).{width; height}
|
// With multiprojector, get the resolution from Prjector.get(pk).{width; height}
|
||||||
if(!last_conf || last_conf.width != conf.width || last-conf.height != conf.height) {
|
if (typeof $scope.config === 'function') {
|
||||||
|
var conf = $scope.config('projector_resolution');
|
||||||
|
if(!last_conf || last_conf.width != conf.width || last_conf.height != conf.height) {
|
||||||
last_conf = conf;
|
last_conf = conf;
|
||||||
$scope.projectorWidth = conf.width;
|
$scope.projectorWidth = conf.width;
|
||||||
$scope.projectorHeight = conf.height;
|
$scope.projectorHeight = conf.height;
|
||||||
$scope.recalculateIframe();
|
$scope.recalculateIframe();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// recalculate the actual Iframesize and scale
|
// recalculate the actual Iframesize and scale
|
||||||
|
Loading…
Reference in New Issue
Block a user