Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic NodeListView caption appearing behind icon (Read 2470 times)
PLM Doctor
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Oct 8th, 2020
NodeListView caption appearing behind icon
Mar 10th, 2021 at 2:12pm
Print Post  
I am trying a version of the TreeLayout sample. The caption is appearing behind the icon (see screen capture). I do not see any NodeListView members that would allow anchoring or repositioning of the caption. It seems like the caption should automatically anchor to the side of the caption. Am I missing something?
  

2021-03-10_9-10-38.png ( 5 KB | 97 Downloads )
2021-03-10_9-10-38.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: NodeListView caption appearing behind icon
Reply #1 - Mar 10th, 2021 at 5:32pm
Print Post  
Please post your NodeListView initialization code. Captions show correctly in my test if I just set them in addNode call.

Regards,
Slavcho
Mindfusion
  

Untitled_002.jpg ( 500 KB | 93 Downloads )
Untitled_002.jpg
Back to top
 
IP Logged
 
PLM Doctor
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Oct 8th, 2020
Re: NodeListView caption appearing behind icon
Reply #2 - Mar 13th, 2021 at 4:17pm
Print Post  
That is what is so perplexing for me. When it comes to the Mindfusion calls, I am not seeing any difference. So it is working for you. I guess I need to see if I can get the sample to work as-is and go from there.


           // non-drug printed components
           var node = new MindFusion.Diagramming.ShapeNode(compList);
           
           node.setShape("Rectangle");
           node.setImageLocation('ux/images/carton.png');
           compList.addNode(node, 'Carton');
           
           // drug products
           if (drgprdMap != null){
                 for (const [dp, attrMap] of Object.entries(drgprdMap)){
                       node = new MindFusion.Diagramming.ShapeNode(compList);
                       
                       node.setShape("Rectangle");

                       if (attrMap.container == 'VIAL'){
                             node.setImageLocation('ux/images/vial.png');
                       }
                       else if (attrMap.container == 'SYRINGE'){
                             node.setImageLocation('ux/images/syringe.png');
                       }
                       else if (attrMap.container == 'BOTTLE'){
                             node.setImageLocation('ux/images/bottle.png');
                       }

                       node.setText(dp);
                       compList.addNode(node, dp);
                 }
           }
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: NodeListView caption appearing behind icon
Reply #3 - Mar 15th, 2021 at 7:15am
Print Post  
What version of the library are you using? Have you changed anything in the listview's html code?
  
Back to top
 
IP Logged
 
PLM Doctor
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Oct 8th, 2020
Re: NodeListView caption appearing behind icon
Reply #4 - Mar 15th, 2021 at 3:42pm
Print Post  
We are using version 3.5.1.

This is the div we have for the NodeListView panel. The parent panel width is 170.


<div style="position: absolute; top: 0px; bottom: 0px; right: 0px; width: 160px; overflow: hidden; height: 100%"><canvas id="compList"></canvas></div>
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: NodeListView caption appearing behind icon
Reply #5 - Mar 16th, 2021 at 10:06am
Print Post  
We could not reproduce with v3.5.1 either. Please modify attached TreeLayout.zip to show the problem and post it back.
  

TreeLayout.zip ( 698 KB | 231 Downloads )
Back to top
 
IP Logged
 
PLM Doctor
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 5
Joined: Oct 8th, 2020
Re: NodeListView caption appearing behind icon
Reply #6 - Mar 19th, 2021 at 2:40am
Print Post  
I replaced the MindFusion.Common.js and Mindfusion.Diagraming.js with the ones in the example and that fixed the problem. Verified by substituting with original libraries and problem returned. I wonder what version I actually have?

Interesting.... the libraries in versions 3.5.1, 3.5.3 and the attachment did not work. Only the ones in the example.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: NodeListView caption appearing behind icon
Reply #7 - Mar 19th, 2021 at 6:53am
Print Post  
The scripts in this example are from v3.5.1 in our release archive, you should get the same files if you download the version from your account page. I can't remember if we ever sent you a pre-release version in the past to fix other issues, if so it might have this problem in NodeListView. Otherwise we can't see any changes in our source control since v3.5.1 that could lead to this - make sure browser is not using cached scripts when you try with latest v3.5.3, or please attach your code reproducing that.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint