This is a migrated thread and some comments may be shown as answers.

Dropdowlist not resizing correctly

4 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 07 Jun 2018, 11:34 AM

I've noticed a regression in the dropdown list when i specify the dropdown height. The shadow is resizing but not the actual 

list. Here is a plunker showing the issue

 

https://plnkr.co/edit/A8bgcQrFi6ijrwEezvRp?p=preview

 

Is this a known issue and is there a work around??

 

 

4 Answers, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 08 Jun 2018, 12:16 PM
Hello David,

The observed layout is actually expected - the popupSettings option controls the size of the Popup itself, while the height of the list is determined by the number of options or by the listHeight property.

For example when the options list is long enough and listHeight is set to match the popupSettings.height property, a vertical scrollbar appears:

https://plnkr.co/edit/bdKYQhGZyPXRkxbNVu4f?p=preview

On the other hand, if you need the list to be as high as the Popup even when there are not enough options to fill it, you can use the following CSS:

encapsulation: ViewEncapsulation.None,
  styles: [`
    .k-popup.k-list-container.k-reset {
      height: 100%
    }
  `]

Here is the updated Plunker:

https://plnkr.co/edit/3DulTI8zLoTFP6V4cgYy?p=preview

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
n/a
Top achievements
Rank 1
answered on 11 Jun 2018, 02:54 PM

Ok, let's play plunker ping pong :-) I still contend it's a bug. If you mave lots of items in the dropdown it still truncates the content even with you css applied.

 

Please see: https://plnkr.co/edit/GD9Z4zCBW69ZsqVzllzI?p=preview

 

Thanks

0
Dimiter Topalov
Telerik team
answered on 12 Jun 2018, 10:31 AM
Hi David,

When there are enough items to "fill" the Popup, setting the listHeight to the same value as the Popup height yields the expected layout (like in the first example of my previous response):

https://plnkr.co/edit/wBGGwqKPapCXQu6iEsir?p=preview

No further styling is required in this case.

However, I agree that having to set both listHeight and Popup height seems counter-intuitive, and this is why I discussed this scenario with our DropDowns developers, and we decided to log an issue in our public GitHub repository that you can track here:

https://github.com/telerik/kendo-angular/issues/1607

Thank you for your feedback and cooperation on this case.

Regards,
Dimiter Topalov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
n/a
Top achievements
Rank 1
answered on 27 Jun 2018, 09:48 AM
THanks for the feedback, i'll apply the work around for now and track the ticket
Tags
General Discussions
Asked by
n/a
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
n/a
Top achievements
Rank 1
Share this question
or