Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    image shows in Internet explorer and in GWT Dev mode- but does not show in Chrome

    I am creating a simple animated image sample using Smart GWT 3.0.

    In this, there is an image which is loaded, and when user clicks on it, it rotates and then stops rotating at original position...

    The problem is that the image shows correctly in Dev Mode of GWT, and also shows correctly in Internet Explorer, but it is not showing initially in Chrome... only if I click on the space where the image is supposed to be, then it starts rotating- but it is not shown if i do not click.

    How do I correct this behaviour?

    Given below is the source code-- I am using Smart GWT 3.0 + GWT 2.4 in Eclipse (on Windows 7 64-bit)-


    drawImg = new DrawImage();
    layout = new VLayout();
    drawPane = new DrawPane();

    drawPane.setHeight(300);
    drawPane.setWidth(300);
    drawPane.setLeft(81);
    drawPane.setTop(60);
    drawPane.setShowEdges(true);
    drawPane.setEdgeSize(0);
    drawPane.setBackgroundColor("white");
    //drawPane.setOverflow(Overflow.HIDDEN);
    drawPane.setCursor(Cursor.AUTO);
    drawImg.setLeft(101);
    drawImg.setTop(75);
    drawImg.setWidth(38);
    drawImg.setHeight(100);
    drawImg.setDrawPane(drawPane);
    //rotatefast();
    drawImg.draw();
    layout.addMember(drawPane);
    layout.draw();

    Other than the above, there is a click handler which actually makes the image rotate. It works perfectly without any problems.
    Last edited by arvindikchari; 21 Mar 2012, 04:32. Reason: added source code

    #2
    I have updated my previous post with the source code- as I mentioned earlier, the rotating image shows correctly in GWT DEV MODE in Chrome, but compiled page does not show correctly in Chrome. However, compiled page shows correctly in Internet Explorer 9.

    Regards,
    Arvind.

    Comment

    Working...
    X