Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoComplete dropdown wraps to next line #2387

Closed
morganpizzini opened this issue Mar 26, 2017 · 2 comments
Closed

AutoComplete dropdown wraps to next line #2387

morganpizzini opened this issue Mar 26, 2017 · 2 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@morganpizzini
Copy link

I'm submitting a ... (check one with "x")

[X] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior

if i put an autocomplete in a small column, dropdown button goes to new line

Expected behavior
dropdown button keeps the same line

Minimal reproduction of the problem with instructions

<div class="ui-g-1">
<p-autoComplete [(ngModel)]="country" [dropdown]="true" field="name" [size]="30" placeholder="Countries" [minLength]="1"></p-autoComplete>
</div>

What is the motivation / use case for changing the behavior?

for fix this i add this css

.ui-autocomplete-dd .ui-autocomplete-dropdown.ui-corner-all{
    position:absolute;
    transform: translateX(-100%);
}
@anilkhichar
Copy link

I am also facing the same problem. My workaround is:

/* start - hack to fix issue with dropdown caret position */
.ui-autocomplete-dd .ui-inputtext {
    float: left;
}

.ui-autocomplete-dd .ui-autocomplete-dropdown {
    float: right;
    transform: translateY(-100%);
}
/* end -  hack to fix issue with dropdown caret position */

@cagataycivici cagataycivici self-assigned this May 29, 2017
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label May 29, 2017
@cagataycivici cagataycivici added this to the 4.0.2 milestone May 29, 2017
@cagataycivici cagataycivici changed the title Autocomplete dropdown issue css AutoComplete dropdown wraps to next line May 29, 2017
@cagataycivici
Copy link
Member

Please wrap the component inside ui-fluid if inside a tight space, ui-fluid will take care of it (4.0.2)

cagataycivici pushed a commit that referenced this issue May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants