Просмотр исходного кода

Make sure first change isn't hidden under toolbar

James Allen 9 лет назад
Родитель
Сommit
f466be96dd

+ 1 - 1
services/web/public/coffee/ide/review-panel/directives/reviewPanelSorted.coffee

@@ -62,7 +62,7 @@ define [
 							$callout_el.css(top: top + line_height, height: original_top - top)
 							$callout_el.css(top: top + line_height, height: original_top - top)
 
 
 					# Put the focused entry as close to where it wants to be as possible
 					# Put the focused entry as close to where it wants to be as possible
-					focused_entry_top = focused_entry.scope.entry.screenPos.y
+					focused_entry_top = Math.max(focused_entry.scope.entry.screenPos.y, TOOLBAR_HEIGHT)
 					focused_entry.$box_el.css(top: focused_entry_top)
 					focused_entry.$box_el.css(top: focused_entry_top)
 					focused_entry.$indicator_el.css(top: focused_entry_top)
 					focused_entry.$indicator_el.css(top: focused_entry_top)
 					positionLayoutEl(focused_entry.$callout_el, focused_entry.scope.entry.screenPos.y, focused_entry_top)
 					positionLayoutEl(focused_entry.$callout_el, focused_entry.scope.entry.screenPos.y, focused_entry_top)