In file:
C:\Tcl\lib\teapot\package\tcl\lib\Iwidgets4.0.2\scripts\dateentry.itk (this is
the install path of the File)
In Method
itcl::body iwidgets::Dateentry::_popup
Right around the following comment
# The icon button will be used as the basis for the position of the
# popup on the screen. We'll always attempt to locate the popup
# off the lower right corner of the button. If that would put
# the popup off the screen, then we'll put above the upper left.
This chunk of code calculates the position to place the popup calender
that is associated to the widget. the logic accounts for the widget going off the screen to the right, by placing above the upper left. If does not check to see if upper left would put the popup off the screen. I am running into that exact scenario. I am using the widget on a laptop with a small screen and low resolution (sad I know :( ) and the application is maximized. This results in no room to the right or top, and I end up with the months being cut off on the calender popup. The widget should check and make sure there is room to place to popup above the upper left and if there is no room place it bottom right (or something like that)
<hr /><i>wiede added on 2012-03-25 08:51:53 UTC:</i><br />
IWidget is not part of itcl 4.0 so I think the bug is not in the right bug tracker here
|