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">&nbsp;&nbsp;</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;
}









share|improve this question






















  • 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















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">&nbsp;&nbsp;</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;
}









share|improve this question






















  • 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













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">&nbsp;&nbsp;</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;
}









share|improve this question













 <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">&nbsp;&nbsp;</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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?