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

Squashed 'moose-gui/' changes from c21a557..1e5f537

1e5f537 compartment size is fix for newly built model

git-subtree-dir: moose-gui
git-subtree-split: 1e5f537644e746420353c4e9ec26d5b08f4262ad
parent 5cf6177c
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