@@ -31,7 +31,7 @@ const styles = theme => ({
3131 root : {
3232 background : theme . colorBackground ,
3333 position : 'relative' ,
34- borderLeft : ( { isVisible } ) => ( isVisible ? [ `1px solid ${ theme . todos . todosLayer . borderLeftColor } ` ] : 0 ) ,
34+ borderLeft : ( { isVisible } ) => ( isVisible ? [ `2px solid ${ theme . todos . todosLayer . borderLeftColor } ` ] : 0 ) ,
3535 } ,
3636 resizeHandler : {
3737 position : 'absolute' ,
@@ -47,7 +47,6 @@ const styles = theme => ({
4747 width : 5 ,
4848 zIndex : 400 ,
4949 background : theme . todos . dragIndicator . background ,
50-
5150 } ,
5251 premiumContainer : {
5352 display : 'flex' ,
@@ -104,7 +103,9 @@ class TodosWebview extends Component {
104103 this . resizeBrowserView ( ) ;
105104 } ) ;
106105
107- todosContainerRef = React . createRef ( )
106+ todosContainerRef = React . createRef ( ) ;
107+
108+ todosResizeContainerRef = React . createRef ( ) ;
108109
109110 componentWillMount ( ) {
110111 const { width } = this . props ;
@@ -188,14 +189,14 @@ class TodosWebview extends Component {
188189 }
189190
190191 resizeBrowserView ( ) {
191- if ( this . todosContainerRef . current ) {
192- const bounds = this . todosContainerRef . current . getBoundingClientRect ( ) ;
192+ if ( this . todosResizeContainerRef . current ) {
193+ const bounds = this . todosResizeContainerRef . current . getBoundingClientRect ( ) ;
193194
194195 ipcRenderer . send ( RESIZE_TODO_VIEW , {
195196 width : bounds . width ,
196197 height : bounds . height ,
197198 x : bounds . x ,
198- y : this . todosContainerRef . current . offsetTop ,
199+ y : this . todosResizeContainerRef . current . offsetTop ,
199200 } ) ;
200201 }
201202 }
@@ -246,6 +247,7 @@ class TodosWebview extends Component {
246247 style = { { left : delta } } // This hack is required as resizing with webviews beneath behaves quite bad
247248 />
248249 ) }
250+ < div ref = { this . todosResizeContainerRef } />
249251 { ! isTodosIncludedInCurrentPlan && (
250252 < Appear >
251253 < div className = { classes . premiumContainer } >
0 commit comments