Skip to content

Commit

Permalink
Merge pull request #516 from nextcloud/open-sidebar-automatically-whe…
Browse files Browse the repository at this point in the history
…n-joining-a-room

Open sidebar automatically when joining a room
  • Loading branch information
Ivansss authored Dec 5, 2017
2 parents fa6fbf6 + 9fd8780 commit d51face
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,16 @@
updateSidebarWithActiveRoom: function() {
this._sidebarView.enable();

// The sidebar has a width of 27% of the window width and a minimum
// width of 300px. Therefore, when the window is 1111px wide or
// narrower the sidebar will always be 300px wide, and when that
// happens it will overlap with the content area (the narrower the
// window the larger the overlap). Due to this the sidebar is opened
// automatically only if it will not overlap with the content area.
if ($(window).width() > 1111) {
this._sidebarView.open();
}

var callInfoView = new OCA.SpreedMe.Views.CallInfoView({
model: this.activeRoom,
guestNameModel: this._localStorageModel
Expand Down

0 comments on commit d51face

Please sign in to comment.