Skip to content

Commit

Permalink
add scroll demo to tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewseguin committed Dec 20, 2016
1 parent 389dbd4 commit 67e0684
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 2 additions & 1 deletion src/demo-app/tooltip/tooltip-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h1>Tooltip Demo</h1>

<p class="centered" style="height: 200px; overflow: auto;" cdk-scrollable>
<button #tooltip="mdTooltip" style="margin: 300px;"
<button #tooltip="mdTooltip" style="margin-bottom: 300px;"
md-raised-button
color="primary"
[mdTooltip]="message"
Expand All @@ -11,6 +11,7 @@ <h1>Tooltip Demo</h1>
[mdTooltipHideDelay]="hideDelay">
Mouse over to see the tooltip
</button>
Scroll down while tooltip is open to see it hide automatically
</p>

<p>
Expand Down
2 changes: 1 addition & 1 deletion src/demo-app/tooltip/tooltip-demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export class TooltipDemo {
position: TooltipPosition = 'below';
message: string = 'Here is the tooltip';
showDelay = 0;
hideDelay = 0;
hideDelay = 1000;
}
12 changes: 0 additions & 12 deletions src/lib/sidenav/sidenav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,7 @@ import {FocusTrap} from '../core/a11y/focus-trap';
import {ESCAPE} from '../core/keyboard/keycodes';
import {OverlayModule} from '../core/overlay/overlay-directives';
import {InteractivityChecker} from '../core/a11y/interactivity-checker';
<<<<<<< ebeb579c60bb44de259764cd9d226ea92252671e
<<<<<<< 38f2302c080b3941ee7be5289c9a47a0d1a3bcef
import {ScrollDispatcher} from '../core/overlay/scroll/scroll-dispatcher';
=======
import {MdLiveAnnouncer} from '../core/a11y/live-announcer';
<<<<<<< 7f62f0a674630555a66a123367e701089f68e338
import {ScrollDispatcher} from '../core/scroll/scroll-dispatcher';
>>>>>>> review response
=======
=======
>>>>>>> make lint happy
import {ScrollDispatcher} from '../core/overlay/scroll/scroll-dispatcher';
>>>>>>> move scroll to overlay


/** Exception thrown when two MdSidenav are matching the same side. */
Expand Down

0 comments on commit 67e0684

Please sign in to comment.