Skip to content

Commit 6a740a3

Browse files
committed
resolve comments
1 parent 67a98fb commit 6a740a3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/lib/core/overlay/position/connected-position-strategy.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ import {Subject} from 'rxjs/Subject';
1111
import {Observable} from 'rxjs/Observable';
1212
import {Scrollable} from '../scroll/scrollable';
1313

14+
/**
15+
* Container to hold the bounding positions of a particular element with respect to the viewport,
16+
* where top and bottom are the y-axis coordinates of the bounding rectangle and left and right are
17+
* the x-axis coordinates.
18+
*/
1419
export type ElementBoundingPositions = {
1520
top: number;
1621
right: number;

src/lib/tooltip/tooltip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class MdTooltip implements OnInit, OnDestroy {
185185
// close the tooltip.
186186
let strategy = this._overlay.position().connectedTo(this._elementRef, origin, position);
187187
strategy.withScrollableContainers(this._scrollDispatcher.getScrollContainers(this._elementRef));
188-
strategy.onPositionChange.subscribe((change: ConnectedOverlayPositionChange) => {
188+
strategy.onPositionChange.subscribe(change => {
189189
if (change.scrollableViewProperties.isOverlayClipped) {
190190
this.hide(0);
191191
}

0 commit comments

Comments
 (0)