strange behaviour of Marvin Sketch

User dfeb81947d

13-09-2005 13:19:35

Dear Support,





I'm using Marvin 4.0.1 which comes with JChem 3.1.


I add in a JPS page like that:


Code:



<script>


marvin_jvm="plugin";


marvin_gui = "swing";


msketch_name = "'+this.id+'";


msketch_begin("/AurQuest/marvin/",viewerWidth,viewerHeight);


msketch_param("molbg","'+this.viewerColor+'");


msketch_param("background","'+this.viewerColor+'");


msketch_param("undo","10");


msketch_param("reactionSupport","false");


msketch_param("preload", "MolExport");


msketch_param("detach", "hide");


'msketch_param("menubar", "false");


mview_end();


</script>








the purpose is to show the viewer only, show the sketcher in a frame only when clicked and after drawing the molecule, hide the sketcher while the molecule is paste in the viewer.


like: http://www.chemaxon.com/marvin/doc/dev/example-sketch3.5.html





Actually it works fine for viewerWidth=399 and viewerHeight=299 (and lower values) it works fine, but if I use viewerWidth=400 et viewerHeight=300 (or upper values) when the sketcher is closed the viewer got the frame of the sketcher





I was able to reproduce it with the example page example-sketch3.5.html.


I downloaded it change the code to be able to work on local and change the size from 200, 200 to 400,300 and I could reproduce that when closing the Marvinsketch a part of Marvinsketch frame is paste into the viewer.





Kind Regards,


Jacques

ChemAxon 7c2d26e5cf

13-09-2005 15:24:21

Thanks for the bug report.


Until we solve the problem, I suggest you to set the visibility of menubar to true.


Code:
msketch_param("menubar", "true");

User dfeb81947d

15-09-2005 09:31:23

thank you,


Do you think it will be corrected in the next release of marvin 4.0.2, and this release will be included in Jchem 3.1.2?

ChemAxon 7c2d26e5cf

15-09-2005 15:12:52

The next Marvin (4.0.2) will be released in a few days. I can not promise to fix the sketchpanel closing issue by 4.0.2.


JChem 3.2.1 will include this Marvin patch release.


I hope we can solve this problem by Marvin 4.0.3

User dfeb81947d

20-09-2005 07:33:35

Thank you Tamas, that's great :)

ChemAxon 7c2d26e5cf

05-10-2005 16:20:40

Marvin 4.0.2 has been delayed a bit. But I have created a pre-release (4.0.2pre3) where the SketchPanel closing issue is already solved.


http://www.chemaxon.com/test/marvin


See the undetachByX applet parameter.

User dfeb81947d

18-10-2005 07:16:51

Thank you very much Tamas,





I'm waiting for JChem 3.1.2 ;)


Kind Regards





Jacques