Posted on 2007-11-16 14:41:17-08 by struppimoppi
widget subroutines width() and height() does not work
Hello,

The subroutines width() and height() of a Tk::GraphViz widget always return 1, beside the widget was configured to another dimension. This causes fit() not seem to work, or zoom() needs really huge values to size the graph to a useable size.

By replacing the occurances of $self->width() / $self->height() with $self->cget(-width) / $self->cget(-height) in GraphViz.pm everthing works as excpected.

Did someone experienced that problem too?

Ciao, Frank
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.