File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,12 @@ class ServerManagerView {
285
285
// To handle position of servers' tooltip due to scrolling of list of organizations
286
286
// This could not be handled using CSS, hence the top of the tooltip is made same
287
287
// as that of its parent element.
288
- const { top } = this . $serverIconTooltip [ index ] . parentElement . getBoundingClientRect ( ) ;
288
+ let top = null ;
289
+ if ( ! ! this . state . dragged && index > dragged . oldIndex && index <= dragged . newIndex ) {
290
+ top = this . $serverIconTooltip [ index + ( dragged . direction ) * 1 ] . parentElement . getBoundingClientRect ( ) . top ;
291
+ } else {
292
+ top = this . $serverIconTooltip [ index ] . parentElement . getBoundingClientRect ( ) . top ;
293
+ }
289
294
this . $serverIconTooltip [ index ] . style . top = top + 'px' ;
290
295
}
291
296
You can’t perform that action at this time.
0 commit comments