Ignore:
Timestamp:
Mar 8, 2015 1:08:46 AM (5 years ago)
Author:
ldelgass
Message:

Add update in Rebuild to allow initial canvas size to be set. We don't want to
do this in the constructor since that can cause an error when the add method is
called before the constructor returns.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/vtkviewer.tcl

    r5006 r5092  
    10191019# ----------------------------------------------------------------------
    10201020itcl::body Rappture::VtkViewer::Rebuild {} {
    1021 
    10221021    set w [winfo width $itk_component(view)]
    10231022    set h [winfo height $itk_component(view)]
    10241023    if { $w < 2 || $h < 2 } {
     1024        update
    10251025        $_dispatcher event -idle !rebuild
    10261026        return
Note: See TracChangeset for help on using the changeset viewer.