Canviz on Firefox 3.6

27 views
Skip to first unread message

vkrejcirik

unread,
Dec 8, 2010, 5:09:29 AM12/8/10
to canviz
Hi, I use canviz for drawing xdot definition into html page. My
project is based on GWT toolkit, so I have this code:

public static native void getImage(String dot) /*-{
var canviz;

canviz = new $wnd.Canviz("image_1");
canviz.setScale('0.5');
canviz.parse(dot);
}-*/;


where image_1 is:

<div id=\"image_1\"></div>

When I open page in Google Chrome, it seems ok. When I open it in
Firefox, text in picture is ok, but graph is shifted to left. I could
sent you image, if you would like.
Or do you need to view xdot definition?

Thanks for reply.

Ryan Schmidt

unread,
Dec 10, 2010, 1:31:30 AM12/10/10
to can...@googlegroups.com


I'm glad to hear you're using Canviz.

I haven't ever used GWT so I'm not sure what effect it will have on Canviz.

Do you see the same left shift in my demo site? It looks ok to me in Firefox 3.6.13 on Mac OS X 10.6.5.

http://www.ryandesign.com/canviz/


Vladislav Krejcirik

unread,
Dec 10, 2010, 1:50:50 AM12/10/10
to can...@googlegroups.com

Dne 10.12.2010 7:31, Ryan Schmidt napsal(a):
I think, GWT shouldn't have any effect on functionality of Canviz. Yes,
I tried this example and it's fine. Do you have any tips, where could be
a problem? Maybe wrong xdot definition?

I could send to you xdot definition which I use, if it helps.


>

Ryan Schmidt

unread,
Dec 10, 2010, 10:53:26 PM12/10/10
to can...@googlegroups.com
On Dec 10, 2010, at 00:50, Vladislav Krejcirik wrote:
> Dne 10.12.2010 7:31, Ryan Schmidt napsal(a):
>> I haven't ever used GWT so I'm not sure what effect it will have on Canviz.
>>
>> Do you see the same left shift in my demo site? It looks ok to me in Firefox 3.6.13 on Mac OS X 10.6.5.
>>
>> http://www.ryandesign.com/canviz/
> I think, GWT shouldn't have any effect on functionality of Canviz. Yes, I tried this example and it's fine. Do you have any tips, where could be a problem? Maybe wrong xdot definition?
>
> I could send to you xdot definition which I use, if it helps.

Canviz should display most any xdot file correctly. I would suspect GWT, or something else you're doing differently from my example. To verify this, I'd suggest you try one of the sample graphs in your page (verify it also doesn't display correctly there) and plug your xdot into my example page (verify it displays correctly there).


Vladislav Krejcirik

unread,
Dec 13, 2010, 3:21:23 AM12/13/10
to can...@googlegroups.com
Hi, thanks for reply. I will try it. Where is your example page, where I
could paste my xdot definition? I cannot find it. Thanks.


Dne 11.12.2010 4:53, Ryan Schmidt napsal(a):

Ryan Schmidt

unread,
Dec 13, 2010, 3:53:13 AM12/13/10
to can...@googlegroups.com

On Dec 13, 2010, at 02:21, Vladislav Krejcirik wrote:

> Where is your example page, where I could paste my xdot definition? I cannot find it.

http://code.google.com/p/canviz/wiki/HowToUse

http://code.google.com/p/canviz/source/browse/canviz/trunk


Vladislav Krejcirik

unread,
Dec 13, 2010, 4:05:03 AM12/13/10
to can...@googlegroups.com
Thanks. I tried to put your xdot definition into my code. In Google
chrome it seems good. But in Firefox, I see again shifted text. So I
think, it will be problem in my GWT code. I will try to experiment.

Do you have any experience with using Canviz in GWT?

I draw into <div id=\"image\"></div>, it should be fine, or not?


Thanks.

Dne 13.12.2010 9:53, Ryan Schmidt napsal(a):

Vladislav Krejcirik

unread,
Dec 13, 2010, 4:38:25 AM12/13/10
to can...@googlegroups.com
I tried several solutions and I found the cause of shifted text. Problem
is, when I try to center HTML div tag, where I draw. I would like to
have a picture in center of page. How could I do it ? Thanks.


Dne 13.12.2010 9:53, Ryan Schmidt napsal(a):

Reply all
Reply to author
Forward
0 new messages