Skip to content

Commit

Permalink
fix(panel): fix height calc
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Jun 4, 2018
1 parent 7497ccb commit 148cd56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/redux/modules/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const initState: WidgetState = {
: _initConfig.panelWidth,
height: isSaladictPopupPage
? 400
: 30 + _initConfig.dicts.selected.length * 30,
: 30 + 30, // menubar + 1 dict hegiht
},
bowlRect: {
x: 0,
Expand Down Expand Up @@ -565,7 +565,7 @@ function listenNewSelection (
mouseX,
mouseY,
lastPanelRect.width,
30 + state.config.dicts.selected.length * 30,
30 + state.dictionaries.active.length * 30,
)
}
}
Expand Down

0 comments on commit 148cd56

Please sign in to comment.