Skip to content

Commit

Permalink
Merge pull request #338 from kzurawski/master
Browse files Browse the repository at this point in the history
Fixed fullscreen issue, while application is not 1080p
  • Loading branch information
andrewjackson001 committed Feb 11, 2016
2 parents b23d51c + 203b3b5 commit 8ad61f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@
var device = application.getDevice();
var broadcastSource = device.createBroadcastSource();

self.sandbox.stub(application, 'getLayout', function() {
return {
requiredScreenSize: { height: 1080, width: 1920 }
};
});
self.sandbox.stub(window, 'screen', { height: 1080, width: 1920 });

broadcastSource.showCurrentChannel();

Expand Down
3 changes: 1 addition & 2 deletions static/script/devices/broadcastsource/tizentvsource.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,7 @@ require.def(
},

_setBroadcastToFullScreen: function () {
var currentLayout = RuntimeContext.getCurrentApplication().getLayout().requiredScreenSize;
this.setPosition(0, 0, currentLayout.width, currentLayout.height);
this.setPosition(0, 0, window.screen.width, window.screen.height);
},

_tuneToChannelByName: function (params) {
Expand Down

0 comments on commit 8ad61f7

Please sign in to comment.