Open GoogleCodeExporter opened 8 years ago
Original comment by jaime...@google.com
on 5 Aug 2009 at 12:09
Well the proposed workaround does not seem to work for me at all. (I am
checking on
IE 7)
When I set pixel size/width/height, the element doubles in size but the drawing
does
not scale (as it does in FF,Safari,Opera).
Am I missing something?
The code below demonstrates it:
public void onModuleLoad() {
final Button button = new Button("Click me to scale!");
final GWTCanvas canvas = new GWTCanvas(200,200,200,200);
RootPanel.get().add(canvas);
RootPanel.get().add(button);
canvas.setStrokeStyle(Color.BLUE);
canvas.strokeRect(0, 0, 100, 100);
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
canvas.setPixelWidth(400);
canvas.setPixelHeight(400);
}
});
}
Original comment by urg...@gmail.com
on 24 Oct 2009 at 8:05
Original issue reported on code.google.com by
reentry.espresso@gmail.com
on 15 May 2009 at 10:12