Ignore:
Timestamp:
Mar 8, 2015 1:08:46 AM (6 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/vtkmeshviewer.tcl

    r5006 r5092  
    804804# ----------------------------------------------------------------------
    805805itcl::body Rappture::VtkMeshViewer::Rebuild {} {
    806 
    807806    set w [winfo width $itk_component(view)]
    808807    set h [winfo height $itk_component(view)]
    809808    if { $w < 2 || $h < 2 } {
     809        update
    810810        $_dispatcher event -idle !rebuild
    811811        return
Note: See TracChangeset for help on using the changeset viewer.