-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(popover): Popover position fix with scrollable div when adaptive …
…position was enabled (#6423) Co-authored-by: udayk <uday.appam@wavemaker.com>
- Loading branch information
Showing
8 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...src/lib/demos/adaptive-position-overflow-boundary/adaptive-position-overflow-boundary.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
.container { | ||
height:100px; | ||
overflow: auto; | ||
} | ||
.btn-padding { | ||
padding: 15px; | ||
} |
21 changes: 21 additions & 0 deletions
21
...rc/lib/demos/adaptive-position-overflow-boundary/adaptive-position-overflow-boundary.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="container"> | ||
|
||
<div class="btn-padding"> | ||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." popoverTitle="Popover on top" | ||
[adaptivePosition]="true" container="body" boundariesElement="viewport" placement="top"> | ||
Popover on top | ||
</button> | ||
|
||
</div> | ||
|
||
|
||
<div class="btn-padding"> | ||
<button type="button" class="btn btn-default btn-secondary" | ||
popover="Vivamus sagittis lacus vel augue laoreet rutrum faucibus." popoverTitle="Popover on bottom" | ||
[adaptivePosition]="true" container="body" boundariesElement="viewport" placement="bottom"> | ||
Popover on bottom | ||
</button> | ||
</div> | ||
|
||
</div> |
10 changes: 10 additions & 0 deletions
10
.../src/lib/demos/adaptive-position-overflow-boundary/adaptive-position-overflow-boundary.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
// eslint-disable-next-line @angular-eslint/component-selector | ||
selector: 'demo-popover-adaptive-position-overflow-boundary', | ||
templateUrl: './adaptive-position-overflow-boundary.html', | ||
styleUrls: ['./adaptive-position-overflow-boundary.css'] | ||
|
||
}) | ||
export class DemoAdaptivePositionOverflowBoundaryComponent {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters