Skip to content
Snippets Groups Projects
Commit f68eadb5 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Merge commit '2c8c4dcd'

parents 65698f84 2c8c4dcd
No related branches found
No related tags found
No related merge requests found
......@@ -693,6 +693,10 @@ class KineticsWidget(EditorWidgetBase):
linfo = moose.Annotator(l+'/info')
for k, v in self.qGraCompt.items():
rectcompt = v.childrenBoundingRect()
comptBoundingRect = v.boundingRect()
if not comptBoundingRect.contains(rectcompt):
self.updateCompartmentSize(v)
'''
if linfo.modeltype == "new_kkit":
#if newly built model then compartment is size is fixed for some size.
comptBoundingRect = v.boundingRect()
......@@ -702,7 +706,7 @@ class KineticsWidget(EditorWidgetBase):
#if already built model then compartment size depends on max and min objects
rectcompt = calculateChildBoundingRect(v)
v.setRect(rectcompt.x()-10,rectcompt.y()-10,(rectcompt.width()+20),(rectcompt.height()+20))
'''
def updateCompartmentSize(self, compartment):
compartmentBoundary = compartment.rect()
#childrenBoundary = compartment.childrenBoundingRect()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment