@@ -356,14 +356,14 @@ PanelItemTooltip.prototype = {
356356 switch ( this . orientation ) {
357357 case St . Side . BOTTOM :
358358 panel = Main . panelManager . getPanel ( monitor . index , PanelLoc . bottom ) ;
359- tooltipTop = monitor . y + monitor . height - tooltipHeight - panel . actor . height ;
359+ tooltipTop = monitor . y + monitor . height - tooltipHeight - panel . get_height ( ) ;
360360 tooltipLeft = this . mousePosition [ 0 ] - Math . round ( tooltipWidth / 2 ) ;
361361 tooltipLeft = Math . max ( tooltipLeft , monitor . x ) ;
362362 tooltipLeft = Math . min ( tooltipLeft , monitor . x + monitor . width - tooltipWidth ) ;
363363 break ;
364364 case St . Side . TOP :
365365 panel = Main . panelManager . getPanel ( monitor . index , PanelLoc . top ) ;
366- tooltipTop = monitor . y + panel . actor . height ;
366+ tooltipTop = monitor . y + panel . get_height ( ) ;
367367 tooltipLeft = this . mousePosition [ 0 ] - Math . round ( tooltipWidth / 2 ) ;
368368 tooltipLeft = Math . max ( tooltipLeft , monitor . x ) ;
369369 tooltipLeft = Math . min ( tooltipLeft , monitor . x + monitor . width - tooltipWidth ) ;
@@ -381,7 +381,7 @@ PanelItemTooltip.prototype = {
381381 tooltipTop = monitor . y + monitor . height - tooltipHeight ;
382382 }
383383
384- tooltipLeft = monitor . x + panel . actor . width ;
384+ tooltipLeft = monitor . x + panel . get_width ( ) ;
385385 break ;
386386 case St . Side . RIGHT :
387387 panel = Main . panelManager . getPanel ( monitor . index , PanelLoc . right ) ;
@@ -396,7 +396,7 @@ PanelItemTooltip.prototype = {
396396 tooltipTop = monitor . y + monitor . height - tooltipHeight ;
397397 }
398398
399- tooltipLeft = monitor . x + monitor . width - tooltipWidth - panel . actor . width ;
399+ tooltipLeft = monitor . x + monitor . width - tooltipWidth - panel . get_width ( ) ;
400400 break ;
401401 default :
402402 break ;
0 commit comments