Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tim Sanders on Oct 28, 2008 13:06
open dhtmlx forum
Layout - Scroll bar for large html area?

I have a page that uses dhtmlxlayout and used the statement:

myLayoutIns.cells("b").attachObject("objId");

to attach an html span of "objId" to a cell in the layout. The span includes more text than will fit in the cell, so I expected it to put a scroll bar so I could scroll down within the cell to see the additional text. There is not a scroll bar. Is there a way to have the cell scroll if the text is larger than will display (similar to the scrolling that appears if you attach a URL to the cell)?

Thank you.
Answer posted by Support on Oct 29, 2008 09:34
Hello,

By the default layout does not render scrollbars (they turned off in css).
Set width/height to 100% and overflow:auto to your object (better use divs), in this case scrolls will rendered by attached object.


For details see the source code of this demo:
http://dhtmlx.com/docs/products/dhtmlxLayout/samples/conf/attach_object.html?un=1225298112000
<div id="objId" style="width:100%;height:100%;overflow:auto;...
this div attached in the sample.
Answer posted by Tim Sanders on Oct 29, 2008 09:37
Thank you for your help.