Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Setting the height of a DIV in js

Hi,

I have 2 DIVs which contain dynamically created lists and am using them to force a scroll for each of the lists rather than the whole screen.

If I set the height of the DIVs manually to a defined px then the scrolling works as expected, however, I need to set the height of the DIV dependent on the height of the screen, but cannot seem to achieve this.

I have tried all of the following but cannot get this to work, can you help please?

Appery("mlist_div").height('100px');
Appery("jlist_div").height('100px');
or
Appery("mlist_div").attr("style","height:100px");
Appery("jlist_div").attr("style","height:100px");
or
Appery("mlist_div").css("height","100px");
Appery("jlist_div").css("height","100px");

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Setting the height of a DIV in js

Hi Andy,

I've tried following code and it works correctly for me:

pre

Apperyio("html_56").css("height", "500px");

/pre

Please specify what is "mlist_div" and "jlist_div".

Also make some screen shots to understand what component structure you have in your app.

Regards.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Setting the height of a DIV in js

Thanks Yurii - it was a typo in my coding, please close this request.

Return to “Issues”