Page 1 of 1

Setting the height of a DIV in js

Posted: Mon Jan 05, 2015 4:49 pm
by Andy Parker

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");


Setting the height of a DIV in js

Posted: Tue Jan 06, 2015 2:44 am
by Yurii Orishchuk

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.


Setting the height of a DIV in js

Posted: Tue Jan 06, 2015 3:39 pm
by Andy Parker

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