Arrow does not move from the position in the field
up vote
0
down vote
favorite
<div class="content">
<div fxFlex="100" fxLayout="column" class="specifique">
<span class="text">Osmose</span>
<div tabindex="4" class="siga-choix-themes-component">
<div fxLayout="row">
<mat-form-field class="osmoseForm-full-width">
<input type="text" placeholder="Osmose(s)" aria-label="Number" matInput maxlength="8" formControlName="osmoses"
[matAutocomplete]="auto" required minlength="8" (blur)="onBlur()">
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayOsmoses">
<mat-option *ngFor="let osmose of osmoses trackBy: trackById" [value]="osmose">
{{ osmose.code }}
</mat-option>
</mat-autocomplete>
<div class="mat-select-arrow-wrapper">
<div class="mat-select-arrow" [ngClass]="{'mat-select-arrow-down': !auto.isOpen, 'mat-select-arrow-up': auto.isOpen}"></div>
</div>
<button class="space-close" mat-button *ngIf="osmosesControl.value" matSuffix mat-icon-button aria-label="Clear"
(click)="osmosesControl.setValue('')">
<mat-icon>close</mat-icon>
</button>
<mat-hint></mat-hint>
<mat-error *ngIf="osmosesControl.hasError('pattern')">
<strong>
{{'messages.osmoseCodeFormat' | translate}}
</strong>
</mat-error>
</mat-form-field>
<!-- Osmose part 2 -->
<div class="siga-separator"> </div>
<mat-form-field class="osmose-libelle" fxFlex="40">
<input class="" matInput formControlName="osmose_libelle">
</mat-form-field>
</div>
</div>
</div>
</div>
</form>
So I cannot make the arrow move up to the right of the field without moving it with padding. I tried with display: inline-block, flex and it still stood in the same position. I thought it is because of the div but still to no avail.
I even tried doing it with the top or right or left or changing the position to absolute.
This is the css:
.mat-select-arrow-wrapper>div {
display: inline-block;
vertical-align: calc(3px);
margin: 0;
right: 100%;
}
.mat-select-arrow-down {
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-top: $mat-select-arrow-size solid;
}
.mat-select-arrow-up {
border-top: 0px;
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-bottom: $mat-select-arrow-size solid;
}
javascript html css angular
add a comment |
up vote
0
down vote
favorite
<div class="content">
<div fxFlex="100" fxLayout="column" class="specifique">
<span class="text">Osmose</span>
<div tabindex="4" class="siga-choix-themes-component">
<div fxLayout="row">
<mat-form-field class="osmoseForm-full-width">
<input type="text" placeholder="Osmose(s)" aria-label="Number" matInput maxlength="8" formControlName="osmoses"
[matAutocomplete]="auto" required minlength="8" (blur)="onBlur()">
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayOsmoses">
<mat-option *ngFor="let osmose of osmoses trackBy: trackById" [value]="osmose">
{{ osmose.code }}
</mat-option>
</mat-autocomplete>
<div class="mat-select-arrow-wrapper">
<div class="mat-select-arrow" [ngClass]="{'mat-select-arrow-down': !auto.isOpen, 'mat-select-arrow-up': auto.isOpen}"></div>
</div>
<button class="space-close" mat-button *ngIf="osmosesControl.value" matSuffix mat-icon-button aria-label="Clear"
(click)="osmosesControl.setValue('')">
<mat-icon>close</mat-icon>
</button>
<mat-hint></mat-hint>
<mat-error *ngIf="osmosesControl.hasError('pattern')">
<strong>
{{'messages.osmoseCodeFormat' | translate}}
</strong>
</mat-error>
</mat-form-field>
<!-- Osmose part 2 -->
<div class="siga-separator"> </div>
<mat-form-field class="osmose-libelle" fxFlex="40">
<input class="" matInput formControlName="osmose_libelle">
</mat-form-field>
</div>
</div>
</div>
</div>
</form>
So I cannot make the arrow move up to the right of the field without moving it with padding. I tried with display: inline-block, flex and it still stood in the same position. I thought it is because of the div but still to no avail.
I even tried doing it with the top or right or left or changing the position to absolute.
This is the css:
.mat-select-arrow-wrapper>div {
display: inline-block;
vertical-align: calc(3px);
margin: 0;
right: 100%;
}
.mat-select-arrow-down {
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-top: $mat-select-arrow-size solid;
}
.mat-select-arrow-up {
border-top: 0px;
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-bottom: $mat-select-arrow-size solid;
}
javascript html css angular
Can't you post the resulting HTML Code instead of the Angular Template Code? I cannot reproduce your issue. And I think you are having a CSS problem totally unrelated to angular, but only to HTML and CSS
– HerrSerker
Nov 13 at 13:45
Basically, the arrow doesn't go to the right like in the screenshot. i.imgur.com/eabnU92.png
– Stefan
Nov 14 at 9:33
Aah, you mean, it doesn't point to the right. I was looking for an arrow on the right side :)
– HerrSerker
Nov 14 at 10:14
But anyway, we cannot help you, if you are not giving us your resulting code (HTML and CSS). We don't know, what$mat-select-arrow-size
is neither do we know what your*ngFor
produces
– HerrSerker
Nov 14 at 10:17
See How to Ask and Minimal, Complete, and Verifiable example for reference
– HerrSerker
Nov 14 at 10:18
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
<div class="content">
<div fxFlex="100" fxLayout="column" class="specifique">
<span class="text">Osmose</span>
<div tabindex="4" class="siga-choix-themes-component">
<div fxLayout="row">
<mat-form-field class="osmoseForm-full-width">
<input type="text" placeholder="Osmose(s)" aria-label="Number" matInput maxlength="8" formControlName="osmoses"
[matAutocomplete]="auto" required minlength="8" (blur)="onBlur()">
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayOsmoses">
<mat-option *ngFor="let osmose of osmoses trackBy: trackById" [value]="osmose">
{{ osmose.code }}
</mat-option>
</mat-autocomplete>
<div class="mat-select-arrow-wrapper">
<div class="mat-select-arrow" [ngClass]="{'mat-select-arrow-down': !auto.isOpen, 'mat-select-arrow-up': auto.isOpen}"></div>
</div>
<button class="space-close" mat-button *ngIf="osmosesControl.value" matSuffix mat-icon-button aria-label="Clear"
(click)="osmosesControl.setValue('')">
<mat-icon>close</mat-icon>
</button>
<mat-hint></mat-hint>
<mat-error *ngIf="osmosesControl.hasError('pattern')">
<strong>
{{'messages.osmoseCodeFormat' | translate}}
</strong>
</mat-error>
</mat-form-field>
<!-- Osmose part 2 -->
<div class="siga-separator"> </div>
<mat-form-field class="osmose-libelle" fxFlex="40">
<input class="" matInput formControlName="osmose_libelle">
</mat-form-field>
</div>
</div>
</div>
</div>
</form>
So I cannot make the arrow move up to the right of the field without moving it with padding. I tried with display: inline-block, flex and it still stood in the same position. I thought it is because of the div but still to no avail.
I even tried doing it with the top or right or left or changing the position to absolute.
This is the css:
.mat-select-arrow-wrapper>div {
display: inline-block;
vertical-align: calc(3px);
margin: 0;
right: 100%;
}
.mat-select-arrow-down {
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-top: $mat-select-arrow-size solid;
}
.mat-select-arrow-up {
border-top: 0px;
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-bottom: $mat-select-arrow-size solid;
}
javascript html css angular
<div class="content">
<div fxFlex="100" fxLayout="column" class="specifique">
<span class="text">Osmose</span>
<div tabindex="4" class="siga-choix-themes-component">
<div fxLayout="row">
<mat-form-field class="osmoseForm-full-width">
<input type="text" placeholder="Osmose(s)" aria-label="Number" matInput maxlength="8" formControlName="osmoses"
[matAutocomplete]="auto" required minlength="8" (blur)="onBlur()">
<mat-autocomplete #auto="matAutocomplete" [displayWith]="displayOsmoses">
<mat-option *ngFor="let osmose of osmoses trackBy: trackById" [value]="osmose">
{{ osmose.code }}
</mat-option>
</mat-autocomplete>
<div class="mat-select-arrow-wrapper">
<div class="mat-select-arrow" [ngClass]="{'mat-select-arrow-down': !auto.isOpen, 'mat-select-arrow-up': auto.isOpen}"></div>
</div>
<button class="space-close" mat-button *ngIf="osmosesControl.value" matSuffix mat-icon-button aria-label="Clear"
(click)="osmosesControl.setValue('')">
<mat-icon>close</mat-icon>
</button>
<mat-hint></mat-hint>
<mat-error *ngIf="osmosesControl.hasError('pattern')">
<strong>
{{'messages.osmoseCodeFormat' | translate}}
</strong>
</mat-error>
</mat-form-field>
<!-- Osmose part 2 -->
<div class="siga-separator"> </div>
<mat-form-field class="osmose-libelle" fxFlex="40">
<input class="" matInput formControlName="osmose_libelle">
</mat-form-field>
</div>
</div>
</div>
</div>
</form>
So I cannot make the arrow move up to the right of the field without moving it with padding. I tried with display: inline-block, flex and it still stood in the same position. I thought it is because of the div but still to no avail.
I even tried doing it with the top or right or left or changing the position to absolute.
This is the css:
.mat-select-arrow-wrapper>div {
display: inline-block;
vertical-align: calc(3px);
margin: 0;
right: 100%;
}
.mat-select-arrow-down {
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-top: $mat-select-arrow-size solid;
}
.mat-select-arrow-up {
border-top: 0px;
border-left: $mat-select-arrow-size solid transparent;
border-right: $mat-select-arrow-size solid transparent;
border-bottom: $mat-select-arrow-size solid;
}
javascript html css angular
javascript html css angular
asked Nov 13 at 13:42
Stefan
84
84
Can't you post the resulting HTML Code instead of the Angular Template Code? I cannot reproduce your issue. And I think you are having a CSS problem totally unrelated to angular, but only to HTML and CSS
– HerrSerker
Nov 13 at 13:45
Basically, the arrow doesn't go to the right like in the screenshot. i.imgur.com/eabnU92.png
– Stefan
Nov 14 at 9:33
Aah, you mean, it doesn't point to the right. I was looking for an arrow on the right side :)
– HerrSerker
Nov 14 at 10:14
But anyway, we cannot help you, if you are not giving us your resulting code (HTML and CSS). We don't know, what$mat-select-arrow-size
is neither do we know what your*ngFor
produces
– HerrSerker
Nov 14 at 10:17
See How to Ask and Minimal, Complete, and Verifiable example for reference
– HerrSerker
Nov 14 at 10:18
add a comment |
Can't you post the resulting HTML Code instead of the Angular Template Code? I cannot reproduce your issue. And I think you are having a CSS problem totally unrelated to angular, but only to HTML and CSS
– HerrSerker
Nov 13 at 13:45
Basically, the arrow doesn't go to the right like in the screenshot. i.imgur.com/eabnU92.png
– Stefan
Nov 14 at 9:33
Aah, you mean, it doesn't point to the right. I was looking for an arrow on the right side :)
– HerrSerker
Nov 14 at 10:14
But anyway, we cannot help you, if you are not giving us your resulting code (HTML and CSS). We don't know, what$mat-select-arrow-size
is neither do we know what your*ngFor
produces
– HerrSerker
Nov 14 at 10:17
See How to Ask and Minimal, Complete, and Verifiable example for reference
– HerrSerker
Nov 14 at 10:18
Can't you post the resulting HTML Code instead of the Angular Template Code? I cannot reproduce your issue. And I think you are having a CSS problem totally unrelated to angular, but only to HTML and CSS
– HerrSerker
Nov 13 at 13:45
Can't you post the resulting HTML Code instead of the Angular Template Code? I cannot reproduce your issue. And I think you are having a CSS problem totally unrelated to angular, but only to HTML and CSS
– HerrSerker
Nov 13 at 13:45
Basically, the arrow doesn't go to the right like in the screenshot. i.imgur.com/eabnU92.png
– Stefan
Nov 14 at 9:33
Basically, the arrow doesn't go to the right like in the screenshot. i.imgur.com/eabnU92.png
– Stefan
Nov 14 at 9:33
Aah, you mean, it doesn't point to the right. I was looking for an arrow on the right side :)
– HerrSerker
Nov 14 at 10:14
Aah, you mean, it doesn't point to the right. I was looking for an arrow on the right side :)
– HerrSerker
Nov 14 at 10:14
But anyway, we cannot help you, if you are not giving us your resulting code (HTML and CSS). We don't know, what
$mat-select-arrow-size
is neither do we know what your *ngFor
produces– HerrSerker
Nov 14 at 10:17
But anyway, we cannot help you, if you are not giving us your resulting code (HTML and CSS). We don't know, what
$mat-select-arrow-size
is neither do we know what your *ngFor
produces– HerrSerker
Nov 14 at 10:17
See How to Ask and Minimal, Complete, and Verifiable example for reference
– HerrSerker
Nov 14 at 10:18
See How to Ask and Minimal, Complete, and Verifiable example for reference
– HerrSerker
Nov 14 at 10:18
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53282350%2farrow-does-not-move-from-the-position-in-the-field%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can't you post the resulting HTML Code instead of the Angular Template Code? I cannot reproduce your issue. And I think you are having a CSS problem totally unrelated to angular, but only to HTML and CSS
– HerrSerker
Nov 13 at 13:45
Basically, the arrow doesn't go to the right like in the screenshot. i.imgur.com/eabnU92.png
– Stefan
Nov 14 at 9:33
Aah, you mean, it doesn't point to the right. I was looking for an arrow on the right side :)
– HerrSerker
Nov 14 at 10:14
But anyway, we cannot help you, if you are not giving us your resulting code (HTML and CSS). We don't know, what
$mat-select-arrow-size
is neither do we know what your*ngFor
produces– HerrSerker
Nov 14 at 10:17
See How to Ask and Minimal, Complete, and Verifiable example for reference
– HerrSerker
Nov 14 at 10:18