File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " CacheUMLExplorer" ,
3- "version" : " 0.11.0 " ,
3+ "version" : " 0.11.1 " ,
44 "description" : " An UML Class explorer for InterSystems Caché" ,
55 "directories" : {
66 "test" : " test"
Original file line number Diff line number Diff line change @@ -359,7 +359,9 @@ ClassView.prototype.render = function (data) {
359359 var self = this ,
360360 number = lib . countProperties ( data [ "classes" ] ) ;
361361
362- if ( number < 30 ) return this . confirmRender ( data ) ;
362+ if ( number < 30 ) {
363+ return self . confirmRender ( data ) ;
364+ }
363365
364366 var c = document . createElement ( "div" ) ,
365367 c1 = document . createElement ( "h3" ) ,
@@ -415,6 +417,11 @@ ClassView.prototype.confirmRender = function (data) {
415417 uml = joint . shapes . uml , relFrom , relTo ,
416418 classes = { } , connector ;
417419
420+ // Reset view and zoom again because it may cause visual damage to icons.
421+ // Don't ask me why. Just believe we need this peace of code.
422+ this . zoom ( null ) ;
423+ this . resetView ( ) ;
424+
418425 if ( ! data [ "classes" ] ) {
419426 console . error ( "Wrong data: no 'classes' property." , data ) ;
420427 return ;
You can’t perform that action at this time.
0 commit comments