I'm trying to change default Overlay positioning. My code looks like this:
config.positionStrategy = this.overlay.position()
.global()
.left(origin.left+'px')
.top(origin.top+'px');
and by default .cdk-overlay-pane
element has this configuration:
element.style {
width: 56px;
height: 56px;
position: static;
margin-left: 412px;
margin-top: 803px;
}
Is there's a possibility to change position
and margins
for top/left
and looking like this?
element.style {
width: 56px;
height: 56px;
**position: absolute;
left: 412px;
top: 803px;**
}
I was looking for it in Overlay and PositionStrategy, but still I don't know where to find files responsible for creating .cdk-overlay-pane
element.