mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 21:05:18 +02:00
Ready to show/hide screen, but still needs to create an isolated scope.
This commit is contained in:
@@ -41,7 +41,7 @@ module.exports = function DeviceScreenDirective($document, ScalingService, $root
|
||||
}
|
||||
})
|
||||
|
||||
scope.$watch('showView', function (val) {
|
||||
scope.$watch('showScreen', function (val) {
|
||||
if (val) {
|
||||
loadScreen();
|
||||
} else {
|
||||
@@ -70,7 +70,7 @@ module.exports = function DeviceScreenDirective($document, ScalingService, $root
|
||||
}
|
||||
|
||||
loader.onload = function () {
|
||||
if (scope.canView && scope.showView) {
|
||||
if (scope.canView && scope.showScreen) {
|
||||
// Sets the size only if updated
|
||||
if (cached.displayWidth !== displayWidth ||
|
||||
cached.displayHeight !== displayHeight ||
|
||||
|
||||
Reference in New Issue
Block a user