primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.18k stars 4.55k forks source link

Component misalignment (button, dropdown) #1577

Closed aaraggornn closed 7 years ago

aaraggornn commented 7 years ago

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

Plunkr Case (Bug Reports) Example Plunkr: http://plnkr.co/edit/afgNLR

Current behavior Placing a Button and Dropdown next to each other do not line up vertically See also http://forum.primefaces.org/viewtopic.php?f=35&t=48468

Expected behavior The Button and Dropdown should line up vertically

Minimal reproduction of the problem with instructions Create a new Angular project with only PrimeNG installed and the Button and Dropdown modules included. In the template add the Button and Dropdown

<button pButton label="Today"></button>
<p-dropdown [options]="selectedDateRangeOptions" [(ngModel)]="selectedDateRange"></p-dropdown>

See http://plnkr.co/edit/afgNLR

What is the motivation / use case for changing the behavior? To allow a seamless user experience which looks professional

Please tell us about your environment: Windows 10 Compiled and run using angular-cli and also occurs in Plunkr

cagataycivici commented 7 years ago

vertical-align: middle on of those should fix it.