Skip to content

Commit

Permalink
Fixed Chrome bug when opening plugin and height doesn't get set
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Offringa committed Jul 5, 2017
1 parent c421f82 commit 5d05a0f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"tsip_event_code_e": true,
"tsip_transport_state_e": true,
"webkitNotifications": true,
"electron": true
"electron": true,
"$": true,
},
"plugins": [

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "click-to-dial",
"version": "2.0.10",
"version": "2.0.11",
"description": "click-to-dial web extension for Firefox, Chrome & Electron desktop app.",
"engines": {
"node": ">=8.0.0"
Expand Down
7 changes: 4 additions & 3 deletions src/js/modules/ui/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class UiModule {

for (let widget in this.app.modules) {
// Don't close the widget when the popout is active.
if(!reopen) {
if (!reopen) {
this.app.emit('ui:widget.close', {name: widget})
this.app.emit('ui:widget.busy', {name: widget})
}
Expand Down Expand Up @@ -209,8 +209,9 @@ class UiModule {

// https://bugs.chromium.org/p/chromium/issues/detail?id=307912
setTimeout(() => {
$('body').width(401)
}, 150);
const width = $('body').width()
$('body').width(width + 1)
}, 150)
}


Expand Down

0 comments on commit 5d05a0f

Please sign in to comment.