AbimannanMuthusamy / jsplumb

Automatically exported from code.google.com/p/jsplumb
0 stars 0 forks source link

when Container is specified #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. specify jsPlumb.Defaults.Container = 'someid';
2. connect 4 or more than 4 elements/divs within the container

then, even though the connecters and end ponts get connected properly and 
perfectly, some of the canvas elements get a style.top with -ve values 
resulting in a overlapping divs above the parent container. i.e. the canvas is 
not restricted inside the container even though the Container is specified.

What version of the product are you using? On what browser and OS?
1.2.5, ie8, ie9, chrome, firefox

Please provide any additional information below.

Original issue reported on code.google.com by nagendr...@gmail.com on 10 Jun 2011 at 12:44

GoogleCodeExporter commented 9 years ago
do you have overflow:hidden set on your container?

Original comment by simon.po...@gmail.com on 10 Jun 2011 at 3:01

GoogleCodeExporter commented 9 years ago
No, there isnt an overflow set on the container div.

Original comment by nagendr...@gmail.com on 13 Jun 2011 at 10:52

GoogleCodeExporter commented 9 years ago
<div id="divPreview" runat="server" style="position:relative; height:100%; 
width:100%; top:0px; z-index:1">
    <div id="divChart" runat="server" style="position:relative; height:100%; width:100%; top:100px">
    </div>
</div>

Original comment by nagendr...@gmail.com on 13 Jun 2011 at 10:55

GoogleCodeExporter commented 9 years ago
ok. you need to set overflow:hidden on that container div if you want that 
effect.  the container argument to jsPlumb tells jsPlumb to append the canvas 
it creates to that container rather than the default, which is the document 
body.  it does not tell jsPlumb to adjust the way it paints everything.  it 
would be a huge amount of work for very little gain to do that.

closing this as it's not a bug.

Original comment by simon.po...@gmail.com on 13 Jun 2011 at 10:11

GoogleCodeExporter commented 9 years ago
Excellent! Thanks.

Original comment by nagendr...@gmail.com on 14 Jun 2011 at 9:19