From: James B. <jk...@mr...> - 2002-02-07 10:46:15
|
In poor style I'll follow up on my own message... iwidgets/tabnotebook.itk sets the default padx and pady to be 4. Older Tk releases didn't have a -padx option on frames, but I think this must have been added in 8.4. Hence the frame (iwidgets "hull") gets padx 4 and pady 4, which implies that the size of the canvas embedded within it is not the same. This causes a loop due to the rather strange _resize function: # ------------------------------------------------------------- # PRIVATE METHOD: _resize # # This method added by csmith, 5/1/01, to fix a bug with the # geometry of the tabnotebook. The hull component's geometry # was not being updated properly on <Configure> events. # ------------------------------------------------------------- body iwidgets::Tabnotebook::_resize {newWidth_ newHeight_} { _canvasReconfigure $newWidth_ $newHeight_ update idletasks component hull configure -width $newWidth_ -height $newHeight_ } The solution is obvious - just configure the hull to be -padx 0 -pady 0. This still looks like a dangerous approach. Anyway, this is clearly a iwidgets bug, but what's got me wondering now is whether this happens on Unix. I've never noticed it before, but I'm not running with 8.4 yet on unix so I that would avoid the issue. Sorry to cause any alarm :) I'll submit this as an iwidgets bug. James -- James Bonfield (jk...@mr...) Fax: (+44) 01223 213556 Medical Research Council - Laboratory of Molecular Biology, Hills Road, Cambridge, CB2 2QH, England. Also see Staden Package WWW site at http://www.mrc-lmb.cam.ac.uk/pubseq/ |