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

Overflow not showing until window is resized

4 Answers 332 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
Kyle Smith
Top achievements
Rank 1
Kyle Smith asked on 17 Dec 2015, 04:34 PM

Hi,

 I have a kendo toolbar that has one static button. The rest are added via javascript that calls to web service to determine what buttons are to be made available. If the code adds too many buttons, I expect the overflow to appear, but it does not. The window must be resized and then the overflow appears.

I've made a demo to show the issue: http://dojo.telerik.com/OXUpA

Please let me know what I can do to get the overflow to appear immediately when it is needed.

4 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 21 Dec 2015, 03:27 PM
Hi Kyle,

To achieve the expected result you should call the resize method. For your convenience here is the modified dojo.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Aleksandar
Top achievements
Rank 1
answered on 30 Jun 2016, 09:23 AM

I have the same issues with the toolbar.

I have static items, I use AngularJS so in my case the toolbar is configured thought the options in Angular Controller.

And overflow content is not visible untill I resize the page.

 

Any ideas why?

 

P.S. I pass following configuration:

{
    template: "<select-all-rows-directive />",
attributes: { class: "toolbar-button" }
},
{
template: "<reset-all-grid-filters />",
attributes: { class: "toolbar-button" }
}

0
Aleksandar
Top achievements
Rank 1
answered on 30 Jun 2016, 09:26 AM

It means that my items are directives.

Maybe it's because of the render order?

Maybe kendo renders toolbar before all my directives are rendered?

0
Iliana Dyankova
Telerik team
answered on 04 Jul 2016, 10:39 AM
Hi Aleksandar,

I am not quite sure what causes the problem in your application. Could you please provide a dojo which I will be able to test on my side - this way I would be able to provide concrete recommendations? 

Regards,
Iliana Nikolova
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Toolbar
Asked by
Kyle Smith
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Aleksandar
Top achievements
Rank 1
Share this question
or